]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/entity-selector.js
Fixed failing tests from dompdf chanages
[bookstack] / resources / js / components / entity-selector.js
index 6d9d06f860329b402c9166db51ffc646537ca988..e2596998aedea01a105b40496f1909c0d6b60f20 100644 (file)
@@ -87,6 +87,16 @@ class EntitySelector {
         }
     }
 
+    reset() {
+        this.searchInput.value = '';
+        this.showLoading();
+        this.initialLoad();
+    }
+
+    focusSearch() {
+        this.searchInput.focus();
+    }
+
     showLoading() {
         this.loading.style.display = 'block';
         this.resultsContainer.style.display = 'none';