amarkes / br-masker-ionic-3

mascara para inputs
MIT License
110 stars 32 forks source link

decimal: 0 is ignored and set to 2 #58

Closed sjucker closed 6 years ago

sjucker commented 6 years ago

https://github.com/amarkes/br-masker-ionic-3/blob/3a3fc12082f4004d655e9b60815ba8d7905d98a8/src/directives/brmasker-ionic-3.ts#L61

The condition will evaluate to true (!0) and therefore the initially set value of 0 will be overwritten by 2.

amarkes commented 6 years ago

what is the reason for having a zero decimal?

amarkes commented 6 years ago

update mask and use