You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have encountered a weird behavior when using the FUI form with the Inputmask plugin. When I set {autoUnmask: true} in Inputmask, 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 with Inputmask.
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
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.
@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:
The text was updated successfully, but these errors were encountered: