Inputmask icon indicating copy to clipboard operation
Inputmask copied to clipboard

, to . change

Open nrtszr opened this issue 7 years ago • 4 comments

how can I do it automatically at the input

, to .

for price

nrtszr avatar Jan 03 '18 07:01 nrtszr

@nrtszr ,

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

RobinHerbots avatar Jan 03 '18 08:01 RobinHerbots

i find my want

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

please add this to your system

nrtszr avatar Jan 03 '18 08:01 nrtszr

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

groupSeparator: '․',

henriquecm avatar Jun 20 '18 13:06 henriquecm

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.

clusian avatar Dec 17 '21 18:12 clusian