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
regression if input or textarea has text in it (11.0.1+)
#321
Labels
Comments
4 tasks
kentcdodds
added a commit
that referenced
this issue
Jun 8, 2020
@all-contributors please add @hudochenkov for bugs |
I've put up a pull request to add @hudochenkov! 🎉 |
Thank you! |
🎉 This issue has been resolved in version 11.3.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
This is incredible fast! Thank you very much, Kent! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@testing-library/user-event
version: 11.2.1Testing Framework and version:
jest@26.0.1
@testing-library/jest-dom@5.9.0
@testing-library/react@10.2.1
DOM Environment:
jest-environment-jsdom
@jest-environment jsdom-sixteen
Relevant code or config
What you did:
Updated library from v10 to the latest version.
What happened:
Library types code incorrectly, if
input
ortextarea
already has text in it.Reproduction repository:
https://codesandbox.io/s/user-event-type-to-add-text-issue-9hkpu?file=/src/__tests__/App.test.js
Problem description:
When typing in a
input
ortextarea
, when there is text already, typing happens in a weird manner.In repository above, we have
textarea
with textHello,
in it. Then wetype
1234
. I checked all versions from 11.0.0 till the latest one and this behavior changed many times. Unfortunately, every time it was broken:As we can see version 11.0.1 introduced issues, and then they evolved.
The text was updated successfully, but these errors were encountered: