Skip to content
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

fix: validation error when element not found #1620

Merged
merged 3 commits into from
Dec 13, 2024
Merged

Conversation

tanftw
Copy link
Contributor

@tanftw tanftw commented Dec 2, 2024

When settings.ignore enabled, there are some elements that should not be validated, jquery.validate did ignore it in validationTargetFor() method but the caller still continue running that function. This causes run time error, element.type or element.value not exists because element is undefined.

@tanftw tanftw requested a review from rilwis December 2, 2024 04:26
@rilwis rilwis merged commit 390e36b into master Dec 13, 2024
1 check passed
@rilwis rilwis deleted the fix-validation-error branch December 13, 2024 02:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants