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

🐛 fix(number-input): wrong autocomplete on swiss number formats #1375

Closed
1 task done
SandraVucko opened this issue Apr 9, 2024 · 0 comments · Fixed by #1379
Closed
1 task done

🐛 fix(number-input): wrong autocomplete on swiss number formats #1375

SandraVucko opened this issue Apr 9, 2024 · 0 comments · Fixed by #1379
Assignees
Labels
🐛 bug Something isn't working

Comments

@SandraVucko
Copy link

Current Behavior

In common browsers, the input history is saved and displayed as a suggestion when filling in number input fields. If such a suggestion is clicked, a different value is taken over. For example, if 70'000.0 is clicked, 70.00 is taken over. Other example 1'234.56 is clicked, 1.00 is taken over.

Expected Behavior

The value 70,000.00 should be taken over. Resp. 1'234.56 schould be taken over.

Steps to Reproduce

Fill in the number field (swiss format) with a five-digit number and two additional decimal places and submit it. Open the same field again, and the entered value will be displayed as a suggestion by the browser. Click on the suggestion, and it will be taken over. Click out of the field, and a two-digit number with two decimal places of 00 is displayed and taken over. Only numbers before the apostrophe are taken over.
image
image
image

Version

v15

Browsers

Chrome, Microsoft Edge

Device

Desktop

Code Reproduction URL

No response

Additional Information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@SandraVucko SandraVucko added the 🐛 bug Something isn't working label Apr 9, 2024
@hirsch88 hirsch88 changed the title 🐛 fix(NumberInput): wrong autocomplete on swiss number formats 🐛 fix(number-input): wrong autocomplete on swiss number formats Apr 10, 2024
@hirsch88 hirsch88 self-assigned this Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants