amarkes / br-masker-ionic-3

mascara para inputs
MIT License
110 stars 32 forks source link

User can type numbers without starting behind decimal seperator #71

Open dannybucks opened 5 years ago

dannybucks commented 5 years ago

I tried to use br-masker, but I can't make it work the way I need it. I'm not sure though, if that is possible at all.. I want the input to add .00 if the user doesn't put .xx in himself. e.g. the user types 42 I want to display 42.00, the user types 42.3 I want to display 42.30 and if the user types 42.35 I want to display 42.35.

I can only achieve that when the user types 42 it displays 0.42 (so the user has to type 4200 in order to get 42.00). Is this the designed way to do that or am I doing something wrong?

Noble-Shiva commented 5 years ago

+1 having the same issue. Any quick fixes, as my project will is in production!