uNmAnNeR / imaskjs

vanilla javascript input mask
https://imask.js.org
MIT License
4.95k stars 257 forks source link

Masking currencies doesn't seem to work properly #215

Closed wwwhatley closed 5 years ago

wwwhatley commented 5 years ago

Issue

Hello--I'm currently using iMask with React Native, and it doesn't appear that I have the right options available to me. The documentation is pretty limited, and doesn't explain masked inputs handling currencies well.

Expected behavior

I am trying to mask fields with the format of: $5.78 or $12.00, with decimals being handled in the tenths place....

It appears there is an option for the thousands separator (thousandsSeperator) , but even then, the example provided is pretty vague...

uNmAnNeR commented 5 years ago

hi! thousandsSeperator is about every 3 digit, currently there is no option to change this somehow. Does not scale and radix work for you? Example with currency symbol is on https://unmanner.github.io/imaskjs/ (see Mask in mask currency input)

uNmAnNeR commented 5 years ago

Btw any pull requests to improve docs are very welcomed.