-
Notifications
You must be signed in to change notification settings - Fork 253
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
type causes InvalidStateError with <input type="email"> #316
Comments
I'm seeing the same behavior for |
Yeah, something funky going on with validated character input types. |
Thanks for this @kelvinlzhang! Would you be interested in digging in and figuring out the issue? |
@tpict you're welcome to try as well 😁 |
@kentcdodds error is caused by Seems like a lot of people aren't too happy about this :( |
Looks like |
That's what I was thinking. Want to give it a try? |
This is the same problem as fixed in #262 for the "clear" function. The fix function should probably be extracted and reused. |
@all-contributors please add @kelvinlzhang for bugs |
I've put up a pull request to add @kelvinlzhang! 🎉 |
@all-contributors please add @tpict for bugs, code, and tests |
I've put up a pull request to add @tpict! 🎉 |
@all-contributors please add @nvh95 for bugs |
I've put up a pull request to add @nvh95! 🎉 |
🎉 This issue has been resolved in version 11.3.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Occurs in master of
@testing-library/user-event
version: 11.2.1Here's an example failing test, not really up to this library's standards but I wanted to get as close to the source as possible.
STR:
InvalidStateError
What happened: I wanted to follow up on this comment and reproduce: #307 (comment). Sorry @kentcdodds, the
type=
was abstracted away and it was pretty silly of me to assume it was text. Seems like I ran into 2 completely different issues now, but hopefully I'm just missing something obvious.Test fails on
InvalidStateError
, adding anonChange
handler with aconsole.log(event.target.value)
shows thattype
only enters in the first char before breaking.The text was updated successfully, but these errors were encountered: