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
errorList doesn't contain all errors #1864
Labels
Comments
Anything new about this? Thanks. |
I had this same issue. |
I've found one possible reason, that after |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Your environment
jquery-validate 1.15.0
all browsers
Steps to reproduce
A simple HTML form with two required fields and a custom data-attribute to tell the JS to show the validation errors in a list:
HTML:
JS:
Expected behaviour
The custom errors function should be showing a list of the errors found when the user keys up.
Actual behaviour
I'm finding is that
errorList
array only contains the last error. ButnumberOfInvalids
is returning the correct number of errors. But because errorList only contains the last error then it doesn't show all the errors. The two console logs confirm this.Interestingly if you submit the form then it shows the correct errors. Looks like when calling valid on a single element the errorList contains only the elements errors.
The text was updated successfully, but these errors were encountered: