Swedish decimal seperator
In Sweden, we use a comma instead of a period as a decimal separator. When entering a decimal number into a form (using a comma), it is automatically multiplied by ten. For example, if I enter 94,1 into a number field (94.1 in other places) and click outside of the box, it gets converted to 941.0.
Is there a way to prevent this?

-
Do you use a Number input element?
0 -
Yes it is a number element
0 -
I can reproduce it (we use a comma in The Netherlands as well). A period is treated as a thousand-separator, and the number element seems to mess up if the number of digits after the . is not a multiple of 3. Example: input 1.234,5 is properly parsed, but 1.23,4 is not.
In my opinion this is a bug, and I would personally prefer the thousand separator is blocked entirely for keyboard input (or maybe automatically replaced with the decimal separator for the current culture). You could file a request here
0 -
Thanks, I have been in contact with support who have confirmed that it is a bug.
1
Vous devez vous connecter pour laisser un commentaire.
Commentaires
4 commentaires