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

Destroy undoes validations #192

Open
tslatt opened this issue Jun 6, 2016 · 0 comments
Open

Destroy undoes validations #192

tslatt opened this issue Jun 6, 2016 · 0 comments

Comments

@tslatt
Copy link

tslatt commented Jun 6, 2016

If a field has been validated and is showing an error or warning, and you destroy and reinitialize the validation because you've added or removed a different field, all of the currently shown error messages go away.

If any of those messages were from a custom validator, and then you hit submit, that custom validator doesn't get retested. Therefore, even though the field has failed validation, the form submits successfully.

Is there a way to trigger the re-testing of fields that previously had warnings/errors on them? Or a way to force all fields to be re-tested on submit?

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

No branches or pull requests

1 participant