]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/dropdown-search.js
Opensearch: Fixed XML declaration when php short tags enabled
[bookstack] / resources / js / components / dropdown-search.js
index 30a2aadc1467ddd97a1a3ccb30efea591383f07b..fcbabc022a7c21395272c092e175fb968d773ab2 100644 (file)
@@ -1,6 +1,6 @@
-import {debounce} from "../services/util";
-import {transitionHeight} from "../services/animations";
-import {Component} from "./component";
+import {debounce} from '../services/util.ts';
+import {transitionHeight} from '../services/animations.ts';
+import {Component} from './component';
 
 export class DropdownSearch extends Component {
 
@@ -40,7 +40,7 @@ export class DropdownSearch extends Component {
 
     runLocalSearch(searchTerm) {
         const listItems = this.listContainerElem.querySelectorAll(this.localSearchSelector);
-        for (let listItem of listItems) {
+        for (const listItem of listItems) {
             const match = !searchTerm || listItem.textContent.toLowerCase().includes(searchTerm);
             listItem.style.display = match ? 'flex' : 'none';
             listItem.classList.toggle('hidden', !match);
@@ -79,4 +79,4 @@ export class DropdownSearch extends Component {
         this.loadingElem.style.display = show ? 'block' : 'none';
     }
 
-}
\ No newline at end of file
+}