MDL-78885 comboboxsearch: Show x button when user search is not empty
This commit is contained in:
+1
-1
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');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user