Replies: 1 comment
-
|
I think this is a pretty useful idea. Linking your other issue in here because I think some of the comments from our thread are relevant #9086 We'll need to determine if grouping validation is the only thing that this changes or if there are other ambiguous cases we're making assumptions on. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Thanks for the great work on this package — it’s been super helpful!
Currently, there’s the isValidPartialNumber method, which is recommended to use for validation. However, there’s a tricky case like this:
In a de locale (group separator ".", decimal separator ",") user types
123.45,67:The user meant to type 123.450,67, but the parser interprets it differently.
This can silently change the number in an important form without the user noticing (for example if they type and save and never see the changed number after saving)
Would it make sense to add an option like:
so developers can show a validation message in such cases?
Or is there a recommended “safe and friendly” way to validate localized inputs that avoids this problem?
Thanks again for your work! 🙏
Beta Was this translation helpful? Give feedback.
All reactions