We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://codesandbox.io/s/elastic-surf-6qegdh?file=/src/App.test.js
<input type="text" />
abc
{ArrowLeft}{Backspace}{Backspace}
input element value should be 'c' and cursor position should be 0
The input element value is "a" and the cursor position is 1
14.4.3
Testing Library framework:
JS framework:
Test environment:
DOM implementation:
No response
The text was updated successfully, but these errors were encountered:
I experience similar problem and it boiled down to incorrect behavior with React 17 starting v14.2.6.
Test:
keyboard
a
b
e
h
{ArrowLeft}
C
D
{ArrowRight}
F
G
Expected input value: abCDeFGh Received input value: abCehDFG
abCDeFGh
abCehDFG
Codepens:
Most likely this PR caused regression for React 17 in v14.2.6.
Sorry, something went wrong.
No branches or pull requests
Reproduction example
https://codesandbox.io/s/elastic-surf-6qegdh?file=/src/App.test.js
Prerequisites
<input type="text" />
abc
{ArrowLeft}{Backspace}{Backspace}
Expected behavior
input element value should be 'c' and cursor position should be 0
Actual behavior
The input element value is "a" and the cursor position is 1
User-event version
14.4.3
Environment
Testing Library framework:
JS framework:
Test environment:
DOM implementation:
Additional context
No response
The text was updated successfully, but these errors were encountered: