Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48979

Numeric keyboard decimal separator

$
0
0

Hi,

I’m using ion-input with inputmode=“decimal” for price parameter. In some countries they use comma (,) as decimal separator, so the keyboard is configured with comma in iOS. However, when I type a number with comma, it types into input, but I get nothing in v-model value, just empty parameter. I tried to get the value from JavaScript, but “modelValue” property is also empty in ion-input. The only place where the number can be found is Shadow node div contenteditable which I cannot access, can I? So I just cannot input ANY decimal number if I’m from a particular country.

How can I force keyboard to use point (.) instead of comma? Or any other solution?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48979

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>