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
event.currentTarget not populated when fireevent.change happens for an input. #73
Comments
@kentcdodds any thoughts on this? |
Hi @kelly-tock! So In any case, I think it's generally better to use |
Yes my main concern is that if you are using flow or typescript the event definition doesn’t let you use target to get the value off of. ‘React.SyntheticEvent’ If there’s a different way to define the event in either of those than that should work. |
found a solution:
closing. |
* Copy in waitForElement docs * Link out to source * Add waitForElement examples
dom-testing-library
version: 2.9.1react
version:node
version:npm
(oryarn
) version:Relevant code or config:
What you did:
writing a test for an input.
What happened:
component was using
event.currentTarget.value
, but got an error in the test because currentTarget was not defined.Reproduction:
change the code above to use current target instead.
Problem description:
Suggested solution:
The text was updated successfully, but these errors were encountered: