MDL-78885 comboboxsearch: Show x button when user search is not empty

This commit is contained in:
Shamim Rezaie
2024-03-22 04:24:23 +11:00
parent c122998463
commit 1c377fc61e
3 changed files with 7 additions and 2 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -80,6 +80,11 @@ export default class {
this.registerInputHandlers();
this.registerChangeHandlers();
}
// If we have a search term, show the clear button.
if (this.getSearchTerm() !== '') {
this.clearSearchButton.classList.remove('d-none');
}
}
/**