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
Expected behavior
If the skipInvalid prop is true, then invalid characters should be skipped, even when the lazy prop is false and the unmask prop is true.
Environment:
OS: Windows
Browser: Chrome
Version: 130.0.6723.59
IMask version: 7.6.1
Framework/plugin version if used: react-imask 7.6.1
Additional context
If I change the lazy prop to true then the skipInvalid feature works fine. Similarly, it works ok if I change the unmask prop to false.
The text was updated successfully, but these errors were encountered:
Describe the bug
When using the
react-imask
plugin, theskipInvalid
feature stops to work when thelazy
prop isfalse
and theunmask
prop istrue
.To Reproduce
Steps to reproduce:
IMaskInput
component;mask="(000) 000-0000"
prop;value="310 3103101"
prop (please note that it contains an invalid character, namely a whitespace);lazy={false}
;unmask
;skipInvalid
.Link to sandbox: https://codesandbox.io/p/sandbox/crimson-bird-67lgxz
Expected behavior
If the
skipInvalid
prop istrue
, then invalid characters should be skipped, even when thelazy
prop isfalse
and theunmask
prop istrue
.Environment:
Additional context
If I change the
lazy
prop totrue
then theskipInvalid
feature works fine. Similarly, it works ok if I change theunmask
prop tofalse
.The text was updated successfully, but these errors were encountered: