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

remote validation doesn't always call delegate validationFailed when regular validation fails #126

Open
AtheistP3ace opened this issue Jun 10, 2016 · 0 comments

Comments

@AtheistP3ace
Copy link

AtheistP3ace commented Jun 10, 2016

If I have a field, lets say email, which has the required rule and calls a remote validation to make sure the email doesn't exist.

So I call validator.validate() to validate all the fields. When a field has a remote validation it is first checked to see that it passed regular validations first before the remote validation is validated. If the field fails regular validations it never executes the callback that it normally would for the remote validation which in turn never increments completedValidationsCount which in turn never calls the completion finished function and then never calls the delegate function validationFailed.

This then throws things off oddly too because completedValidationsCount never gets reset back to 0.

EDIT:
I also added some thoughts to the remote validation stuff that I never heard back on which is completely my fault because it took me so long to get back to that. I am so sorry it took so long. Work was completely crazy. I really apologize about that.
#94

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