Get empty ion-input value on inputmode decimal

I am using input type number with inputmode decimal, in ios when input decimals with comma get v-model value empty. How can I fixed that?
Thanks

So you use regex to not allow commas.

Be aware of decimal inputmode on iOS, as the keyboard does not show the comma or dot according to your needs but based on the user locale.
And the validation should be localised as well, so better to use type text and a pattern. Have you tried using a dot instead of a comma?

I need comma, because in France they use that

no, comma is shown depends the country and I need to use it

then use input type text instead of number or decimal.

1 Like