import {debounce} from "../services/util";
+import {transitionHeight} from "../services/animations";
+import {Component} from "./component";
-class DropdownSearch {
+export class DropdownSearch extends Component {
setup() {
this.elem = this.$el;
try {
const resp = await window.$http.get(this.getAjaxUrl(searchTerm));
+ const animate = transitionHeight(this.listContainerElem, 80);
this.listContainerElem.innerHTML = resp.data;
+ animate();
} catch (err) {
console.error(err);
}
this.loadingElem.style.display = show ? 'block' : 'none';
}
-}
-
-export default DropdownSearch;
\ No newline at end of file
+}
\ No newline at end of file