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

[Bug]: Inconsistent behavior of sp-number-field in Safari on iOS #4531

Open
1 task done
mihaiudvuleanu opened this issue Jun 3, 2024 · 0 comments
Open
1 task done
Labels
bug Something isn't working triage An issue needing triage

Comments

@mihaiudvuleanu
Copy link

mihaiudvuleanu commented Jun 3, 2024

Code of conduct

  • I agree to follow this project's code of conduct.

Impacted component(s)

sp-number-field

Expected behavior

The number grouping separator , should not be interpreted as a decimal point. For example if i edit a number displayed as "1,000" and I delete the last 0 digit, the result should be "100".

Actual behavior

While editing a number, the grouping separator is interpreted as a decimal point and, in the above scenario, the result is 1.

Screenshots

number-field

What browsers are you seeing the problem in?

Safari / iOS 17.5.1

How can we reproduce this issue?

  1. Navigate to https://opensource.adobe.com/spectrum-web-components/components/number-field/
  2. Edit the first editable box on the page (from Sizes), by deleting the last digit (try to change it from 1024 to 102)
  3. Hit Enter, now I'm expecting to see 102 in the text box
  4. Instead, it displays 1.02 (the grouping separator was interpreted as a decimal point)

Sample code that illustrates the problem

No response

Logs taken while reproducing problem

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage An issue needing triage
Projects
None yet
Development

No branches or pull requests

1 participant