Reproduction example
https://codesandbox.io/s/elastic-surf-6qegdh?file=/src/App.test.js
Prerequisites
- Render
<input type="text" />
- Type
abc
- Press
{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