Skip to content

Conversation

@Seb33300
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant