mirror of
https://github.com/moodle/moodle.git
synced 2025-04-19 07:25:30 +02:00
MDL-78885 comboboxsearch: Show x button when user search is not empty
This commit is contained in:
parent
c122998463
commit
1c377fc61e
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');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user