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

This commit is contained in:
Shamim Rezaie 2023-11-05 03:28:03 +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

View File

@ -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');
}
}
/**