Skip to content

type regression when used with setRangeText #981

@dzonatan

Description

@dzonatan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreleased

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions