Reproduction example
https://codesandbox.io/s/stoic-snow-vcz5kz
Prerequisites
- Render an input with type="number"
- Execute type() on the number input with a decimal value (ex.
await user.type(screen.getByTestId('input'), '12.55'))
Expected behavior
12.55 is typed into the number input.
Actual behavior
The numbers before the decimal point are truncated and 55 is typed into the number input.
User-event version
14.0.0
Environment
Testing Library framework:
JS framework:
Test environment:
DOM implementation:
Additional context
No response