-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Issue with v1.18.0, IE and Required #2217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Could perhaps be in #2053 |
Just a note to whoever fixes this - please add a proper failing |
(This is actually a massive bug, it will nuke all forms with |
More details - The 'Required' functions 3rd parameter - param is always undefined even if the parameters are added while adding new validation methods which then called 'Depend' function with param and elements and returns "dependency-mismatch" for IE11 browser. |
Got the same issue, went back to |
Duplicate of #2211 |
Summary of Issue
Since upgrading to v1.18.0, text boxes trigger a required validation error even though there is text in the text box. It does not happen in chrome. Rolling back to v1.17.0 fixed the issue.
Your environment
jquery-validate
: v1.18.0Steps to reproduce
Simple MVC Core 2.1 application with a text box created using Html.TextBoxFor. The input element is generated with data-val="true". Html.ValidationFor used to generate the validation error.
Expected behaviour
Would expect no validation error when submit clicked. Normally then when typing in the field, the validation error cleared.
Actual behaviour
Validation error persists and cannot submit form.
Extra debugging revealed that when jquery-validate checked if the element was editable (isContentEditable), it then either did val = $element.text() or val = $element.val(). In the case of my text box, the isContentEditable flag was true, get $element.text() returned "". Hence the required validation failed. $element.val() return the actual contents of the textbox, but this was not used.
The text was updated successfully, but these errors were encountered: