-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Description
Provide a general summary of the issue here
when entering .,
after certain actions the previous number appears in the field but in a different locale
number-field-bug.mov
see Steps to Reproduce below
🤔 Expected Behavior?
input should not allow me to type ,.
| .,
or handle it correctly
😯 Current Behavior
input behaves strangely, replacing the value from one locale to another when typing ,.
| .,
💁 Possible Solution
maybe some cache issues?
🔦 Context
No response
🖥️ Steps to Reproduce
You can reproduce it right on the official website
- follow to NumberField docs https://react-spectrum.adobe.com/react-aria/NumberField.html#example
- there is already some default value
- delete the default value
- type
,.
and blur - see that now there is the same value but in different locale
- delete the value
- type
,.
again and blur - see the same result
- delete the value
- type
.,
and blur - see original value in original locale
- type some different value for example
808
and blur - repeat the actions from 3 to 11
- you can see the same behavior but with different value
Version
1.3.3
What browsers are you seeing the problem on?
Chrome, Safari
If other, please specify.
No response
What operating system are you using?
macOS
🧢 Your Company/Team
No response
🕷 Tracking Issue
No response
lscheibel
Metadata
Metadata
Assignees
Labels
No labels