Skip to content
New issue

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

Impossible to unselect input if using prefix of length greater than one #862

Open
simzikov opened this issue Oct 20, 2024 · 0 comments
Open

Comments

@simzikov
Copy link

Say you have a numeric input with a prefix that has more than one symbol:

<NumericFormat value={1234} prefix={"$$"} />

Try focusing it with a Tab key or using your mouse and pressing Cmd + A to select its content. Once its content is selected, it is not possible to unselect it using arrow keys (Left/Right).

Playground: https://codesandbox.io/p/sandbox/hzcwz2

Used to work OK in at least version v5.2: https://codesandbox.io/p/sandbox/prefix-demo-forked-cp5d8c?from-embed=&workspaceId=549a3a30-4c49-4cb4-8e8b-cf3d73a2df19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant