New issue
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
contextMenu not callable #445
Comments
🎉 This issue has been resolved in version 13.0.5 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Thanks for the report 😃 |
@all-contributors add @geoffroymounier bug |
I've put up a pull request to add @geoffroymounier! 🎉 |
Seems like this is not possible in v14 anymore. Sad. Any solution? |
For V14 the api has changed. See test here: user-event/tests/pointer/click.ts Line 290 in 7a305de
|
Hi!
Any way to make the
<div ... onContextMenu={}>
fire ?I've tried by use of
userEvent.click(elem, {ctrlKey: true})
userEvent.click(elem, {button: 2})
to emulate the right-click on an element but that does not trigger the context menu.Any advice on whether this is a enhancement or simply myself doing wrong
So far I'm using
fireEvent
but I'd love to convert to user-event for all my mocks.The text was updated successfully, but these errors were encountered: