-
Notifications
You must be signed in to change notification settings - Fork 662
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
number field does not accept French numeric values #8963
Comments
Duplicate of #6742 |
For inputs of type number, it is up to the browser to decide what the formatting of the number should be and unfortunately we can't change that behaviour. The only alternative is to use an input of type text. @fahmyr Thank you for your question and @RobJohnston thank you for linking to the other issue. |
Not disputing the input format the browser sets, I'm fine with that. It's the input box does not accept the formatting is the issue. So the browser would set the value as 100,30 and the input of type "number" will reject it as invalid, but worse yet if you try and bind the value to the text box it shows up blank because the value is deemed invalid. The workaround is to convert the French numbers to English formats before binding which is how I got around the issue.
On Friday, October 23, 2020, 12:46:48 p.m. EDT, Francis Gorman <notifications@github.com> wrote:
For inputs of type number, it is up to the browser to decide what the formatting of the number should be and unfortunately we can't change that behaviour. The only alternative is to use an input of type text.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Apologies for any confusion. As already stated by @RobJohnston this a duplicate ticket. The issue is with the third party plugin https://jqueryvalidation.org see comment #6742 (comment) for clarification. I am just a volunteer on this GitHub project. |
If I set the TextBox as type="number" it does not allow for French formatted values such as 10,2. If my culture is "fr-CA" and I try and bind a value such as 10,2 to the TextBox it does not work and leaves it blank.
There is no such issue when the culture is "en-CA" and the values are using a decimal point (ie. 10.2)
The text was updated successfully, but these errors were encountered: