import {debounce} from "../services/util";
+import {transitionHeight} from "../services/animations";
class DropdownSearch {
this.runLocalSearch(input);
} else {
this.toggleLoading(true);
+ this.listContainerElem.innerHTML = '';
this.runAjaxSearch(input);
}
}
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);
}