wirecardBrasil / awesome-mask

The awesome-mask runs with Vue.js and uses the vanilla-masker to make your form awesome with masks.
MIT License
165 stars 22 forks source link

separator support for money #37

Closed caioincau closed 6 years ago

caioincau commented 6 years ago

Closes #35

Giving support for numbers with dot separator.

HenryP3 commented 6 years ago

@caioincau Just tested and didn't work. It will work only for numbers that doesn't reach thousand separator. 999.99 will do. When you try to input one more character it will reset to 0 because the mask will make the input consider another dot (.) when using the pt-br mask at least.

caioincau commented 6 years ago

Fixed this bug @HenryP3

HenryP3 commented 6 years ago

@caioincau the input worked fine with that change, but the issue of loading an existing value returned, it shows 12,01 where should be 120,10