-
Notifications
You must be signed in to change notification settings - Fork 251
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
show warning when using userevent.type
and blur()
#460
Comments
That will prevent the error, but won't fix the behavior if the new |
yes, I agree. should probably be something like master...yshwaker:master |
That looks pretty good to me, though we should probably forward along the |
Resolved in v13.0.0 🚀 |
@testing-library/user-event
version: 12.1.5Relevant code or config
What you did:
run the test
What happened:
the console will show warning message as follows:
and if I try catch the async call in
typeImpl
and expose the error, it show as follows:Problem description:
seems like
currentElement
is returningdocument.body
element since input component lost its focus. and thus the value of this element isundefined
.Suggested solution:
user-event/src/type.js
Line 234 in 5feaa94
The text was updated successfully, but these errors were encountered: