Reproduction example
https://codesandbox.io/s/repro-userevent-setrangetext-v14-efm7wv
Prerequisites
Type 12,34 in the input field.
Expected behavior
A comma (,) gets automatically replaced with the dot (.) both in the browser and tests.
i.e. the final input value is expected to be 12.34.
Actual behavior
final value in the browser: 12.34
final value in the tests: 1234
User-event version
14.2.1
Environment
No response
Additional context
This was working in v13: https://codesandbox.io/s/repro-userevent-setrangetext-v13-0wl91f?file=/src/App.test.js
Reproduction example
https://codesandbox.io/s/repro-userevent-setrangetext-v14-efm7wv
Prerequisites
Type
12,34in the input field.Expected behavior
A comma (
,) gets automatically replaced with the dot (.) both in the browser and tests.i.e. the final input value is expected to be
12.34.Actual behavior
final value in the browser:
12.34final value in the tests:
1234User-event version
14.2.1
Environment
No response
Additional context
This was working in v13: https://codesandbox.io/s/repro-userevent-setrangetext-v13-0wl91f?file=/src/App.test.js