multiselect
multiselect copied to clipboard
Replace keyup by input event
The input event is a better alternative to keyup event because it's triggered immediately when the value changed, including mouse actions.
In our case, our search input uses the type search and the clear button is not working as expected because of the keyup.
<input type="search" name="q" class="form-control form-control-sm" placeholder="Type to filter">
By using an input event, clear button is now working as expected.