Commit ab280853 authored by Clement Ho's avatar Clement Ho

Remove unnecessary dismissCurrentDropdown

parent bcae21b1
...@@ -154,7 +154,6 @@ ...@@ -154,7 +154,6 @@
const dropdownOffset = gl.text.getTextWidth(filteredSearch.value) + filterIconPadding; const dropdownOffset = gl.text.getTextWidth(filteredSearch.value) + filterIconPadding;
this.dismissCurrentDropdown();
this.currentDropdown = 'hint'; this.currentDropdown = 'hint';
if (!dropdownHint) { if (!dropdownHint) {
...@@ -165,12 +164,6 @@ ...@@ -165,12 +164,6 @@
} }
} }
dismissCurrentDropdown() {
if (this.currentDropdown === 'hint') {
dropdownHint.destroy();
}
}
setDropdown() { setDropdown() {
const { lastToken } = this.tokenizer.processTokens(document.querySelector('.filtered-search').value); const { lastToken } = this.tokenizer.processTokens(document.querySelector('.filtered-search').value);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment