]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/entity-selector-popup.js
Opensearch: Fixed XML declaration when php short tags enabled
[bookstack] / resources / js / components / entity-selector-popup.js
index 6fb461968859ece0ad0f8934743c42e4f97c13d0..29c06e9095113420b1d744d2fa73cd607635ea69 100644 (file)
@@ -18,18 +18,13 @@ export class EntitySelectorPopup extends Component {
     /**
      * Show the selector popup.
      * @param {Function} callback
-     * @param {String} searchText
      * @param {EntitySelectorSearchOptions} searchOptions
      */
-    show(callback, searchText = '', searchOptions = {}) {
+    show(callback, searchOptions = {}) {
         this.callback = callback;
         this.getSelector().configureSearchOptions(searchOptions);
         this.getPopup().show();
 
-        if (searchText) {
-            this.getSelector().searchText(searchText);
-        }
-
         this.getSelector().focusSearch();
     }