RobinHerbots / Inputmask

Input Mask plugin
https://robinherbots.github.io/Inputmask/
MIT License
6.39k stars 2.17k forks source link

When using setValue on the inputmask, the mask should be fully applied #1930

Open joaofbantunes opened 6 years ago

joaofbantunes commented 6 years ago

When we use setValue, shouldn't it consider the mask, including the provided digits configuration?

The way it works right now, considering I'm using enforceDigitsOnBlur set to true, if we use setValue it takes the mask into consideration (for example the correct radixPoint), but the digits are not applied until we blur, than focus and blur again.

Sample fiddle here

cc @pfms84

RobinHerbots commented 6 years ago

@joaofbantunes ,

You are correct.