-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Preventing paste works on browser but not during the test #316
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
Comments
I would assume the event handling in jsdom is off? |
Hey @weyert, could you please be more specific? In my environment I just run jest --env=jsdom I don't do anything fancy with |
I am assuming that |
Closing this for inactivity. If someone wants to work on it in the future feel free to open a new issue. Thanks! |
I'm hitting this too. When I try to use |
I think this is a working solution:
|
react-testing-library
version: 5.2.0react
version: 16.7.0node
version: 16.7.0npm
(oryarn
) version: npmRelevant code or config:
Sandbox: https://codesandbox.io/s/40nwnrv650
What you did:
Preventing the paste functionality on a single input. Used the
evt.preventDefault()
.What happened:
The input sets the value
Reproduction:
Sandbox: https://codesandbox.io/s/40nwnrv650
Problem description:
When pasting on the input, the value should not be set
Suggested solution:
N/A
The text was updated successfully, but these errors were encountered: