Skip to content

[RAC] NumberField really strange behavior #7015

@scythewyvern

Description

@scythewyvern

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

  1. follow to NumberField docs https://react-spectrum.adobe.com/react-aria/NumberField.html#example
  2. there is already some default value
  3. delete the default value
  4. type ,. and blur
  5. see that now there is the same value but in different locale
  6. delete the value
  7. type ,. again and blur
  8. see the same result
  9. delete the value
  10. type ., and blur
  11. see original value in original locale
  12. type some different value for example 808 and blur
  13. repeat the actions from 3 to 11
  14. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions