RobinHerbots / Inputmask

Input Mask plugin
https://robinherbots.github.io/Inputmask/
MIT License
6.4k stars 2.17k forks source link

, to . change #1779

Open nrtszr opened 6 years ago

nrtszr commented 6 years ago

how can I do it automatically at the input

, to .

for price

RobinHerbots commented 6 years ago

@nrtszr ,

When you type the komma or dot on the numeric keyboard this is already handled.

nrtszr commented 6 years ago

i find my want

https://github.com/RobinHerbots/Inputmask/issues/1634

please add this to your system

henriquecm commented 6 years ago

I "solved" this by using a character that looks like a dot but it isn't

groupSeparator: '․',

clusian commented 2 years ago

How do I do the opposite of this? I don't want a comma to turn into a decimal. I'm currently using the following:

inputmode="decimal" type="text" aria-required="true" data-inputmask="'alias': 'numeric', 'groupSeparator': ',', 'digits': 2, 'digitsOptional': true, 'showMaskOnHover': false, 'showMaskOnFocus': false, 'rightAlign': false"

I would like users to be able to manually enter in a comma if they desire.