]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/entity-selector.js
Editors: Updated entity link select to pre-fill with selection
[bookstack] / resources / js / components / entity-selector.js
index f12108fbb497877d9d96cd345e66cdf6a24f51bf..9cda35874019e4291951712de8ab96e719c454ec 100644 (file)
@@ -87,6 +87,11 @@ export class EntitySelector extends Component {
         this.searchInput.focus();
     }
 
+    searchText(queryText) {
+        this.searchInput.value = queryText;
+        this.searchEntities(queryText);
+    }
+
     showLoading() {
         this.loading.style.display = 'block';
         this.resultsContainer.style.display = 'none';