]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/entity-search.js
Opensearch: Fixed XML declaration when php short tags enabled
[bookstack] / resources / js / components / entity-search.js
index 0795fca98311b37c84f193d8676c32c4f013fe39..9d45133266d7e4095219970ecc22361d9368aa2d 100644 (file)
@@ -1,4 +1,4 @@
-import {onSelect} from '../services/dom';
+import {onSelect} from '../services/dom.ts';
 import {Component} from './component';
 
 export class EntitySearch extends Component {
@@ -31,7 +31,8 @@ export class EntitySearch extends Component {
     runSearch() {
         const term = this.searchInput.value.trim();
         if (term.length === 0) {
-            return this.clearSearch();
+            this.clearSearch();
+            return;
         }
 
         this.searchView.classList.remove('hidden');