]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/global-search.js
Guest create page: name field autofocus
[bookstack] / resources / js / components / global-search.js
index 9f063f3985c28f31e2a31f64473be3d9f48f2f0c..7bc8a1d45187f8f711f0362c15bcab42119996db 100644 (file)
@@ -1,11 +1,13 @@
 import {htmlToDom} from "../services/dom";
 import {debounce} from "../services/util";
 import {KeyboardNavigationHandler} from "../services/keyboard-navigation";
+import {Component} from "./component";
 
 /**
- * @extends {Component}
+ * Global (header) search box handling.
+ * Mainly to show live results preview.
  */
-class GlobalSearch {
+export class GlobalSearch extends Component {
 
     setup() {
         this.container = this.$el;
@@ -77,6 +79,4 @@ class GlobalSearch {
         this.suggestions.classList.remove('search-suggestions-animation');
         this.suggestionResultsWrap.innerHTML = '';
     }
-}
-
-export default GlobalSearch;
\ No newline at end of file
+}
\ No newline at end of file