X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/a6633642232efd164d4708967ab59e498fbff896..refs/pull/3333/head:/resources/js/components/entity-selector-popup.js diff --git a/resources/js/components/entity-selector-popup.js b/resources/js/components/entity-selector-popup.js index 0104eace7..231f1021f 100644 --- a/resources/js/components/entity-selector-popup.js +++ b/resources/js/components/entity-selector-popup.js @@ -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() {