It would be convenient to be able to paste prices from a website where the formatting contains spaces.
Example: 15 795,06 (fifteen thousand seven hundred ninety five and six cents).
The problem is that the thousand separator is a space character, which the number attribute doesn't allow. If you try to paste the number, the field remains empty and you will see a circled exclamation mark icon to indicate that the input was not allowed, similarly to if you would try to type a letter. It needs to be a number attribute because I make calculations.
15795,06 = works
15 795,06 = doesn't work
While the config tool allows you to specify locale "culture", as well as number formatting, it does not seem to help in this case.
Yes, it is possible to make the thousand separator work if you use a custom number format and manually type the number and then click outside the number field. Then it will add the space once the field loses focus. But copy pasting with a space is still not possible unfortunately.
I have hopes that JS might be a solution, but I am not sure where to start digging. I would like to try and avoid to have an extra attribute and business update rules to do the conversion if possible.