Open KiddoV opened 1 month ago
@KiddoV ,
Everytime the library request the value it will trigger the unmasking, when using the autoUnmask: true. This is logical ans I can not change that behavior from my end.
But what is too many? Do you get an error or so?
@RobinHerbots There's no error or anything, it's just the onUnMask
get call too many time. Not sure if that is OK if I just leave it like that in my app?
Describe the bug
I have encountered a weird behavior when using the FUI form with the
Inputmask
plugin. When I set{autoUnmask: true}
inInputmask
, the{onUnMask: (mVal, umVal)} method
is called every time I interact with the form, such as focusing on any fields or changing input values in any fields. I would expect it to be called only when I change the input in its own field.I am not sure if this conflict is due to
FUI
or if the problem lies withInputmask
.Additionally, when I set {removeMaskOnSubmit: true} without the {autoUnmask: true} option, the value is not unmasked after submission.
Add a link to a codepen, jsfiddle or other example page which shows the problem
Here is my JSFiddle: https://jsfiddle.net/KiddoV/rLb0f6nh/60/
Additional notes
According to @lubber - Owner of FUI: