]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/entity-selector-popup.js
Addressed test failures from users API changes
[bookstack] / resources / js / components / entity-selector-popup.js
index 0104eace7065373983792a525c501746616bc2c9..231f1021fcbe1158f7f7ba331276e6ba5ba68135 100644 (file)
@@ -7,6 +7,8 @@ class EntitySelectorPopup {
     setup() {
         this.elem = this.$el;
         this.selectButton = this.$refs.select;
+        this.searchInput = this.$refs.searchInput;
+
         window.EntitySelectorPopup = this;
 
         this.callback = null;
@@ -20,6 +22,7 @@ class EntitySelectorPopup {
     show(callback) {
         this.callback = callback;
         this.elem.components.popup.show();
+        this.searchInput.focus();
     }
 
     hide() {