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
{{ message }}
This repository has been archived by the owner on Jul 1, 2020. It is now read-only.
even if fields are marked with required in validation attribute after tabbing out of the fields, form gets validated i.e., 'Save/Submit' button gets enabled
I debugged it found that 'regex.test(value);' will return true for undefined value, it converts
undefined to a string value and then checks with regular expression
The text was updated successfully, but these errors were encountered:
Can you provide your code please so I could test with it? You could push a fix if you find a good way... I might check the required & undefined first...maybe something like this: isValid = (patterns[j] === "required" && typeof value === "undefined") ? false : regex.test(value);
Can you try with the piece I posted and see if it work? I'd like to know if it's ok on your side before making a commit on Github... I can't reproduce your problem, so I'd like you to post feedback if possible... Thanks
I debugged it found that 'regex.test(value);' will return true for undefined value, it converts
undefined to a string value and then checks with regular expression
The text was updated successfully, but these errors were encountered: