We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
keydown
Event.preventDefault()
https://codesandbox.io/s/userevent-keyboard-prevent-imf9hv?file=/src/App.test.js
<button>
event.preventDefault()
A click event is dispatched if there is any keydown without a call to event.preventDefault().
click
The click event is only dispatched if the last keydown does not prevent default.
14.3.0
Testing Library framework:
JS framework:
Test environment:
DOM implementation:
No response
The text was updated successfully, but these errors were encountered:
🎉 This issue has been resolved in version 14.4.0 🎉
The release is available on:
Your semantic-release bot 📦🚀
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Reproduction example
https://codesandbox.io/s/userevent-keyboard-prevent-imf9hv?file=/src/App.test.js
Prerequisites
<button>
event.preventDefault()
on the last of multiplekeydown
.Expected behavior
A
click
event is dispatched if there is anykeydown
without a call toevent.preventDefault()
.Actual behavior
The
click
event is only dispatched if the lastkeydown
does not prevent default.User-event version
14.3.0
Environment
Testing Library framework:
JS framework:
Test environment:
DOM implementation:
Additional context
No response
The text was updated successfully, but these errors were encountered: