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 bug where every valid element after an invalid was marked as invalid #5738

Merged
merged 1 commit into from Sep 5, 2014

Conversation

christianseel
Copy link

There is a bug where every valid element after an invalid element was marked/styled as invalid due the fact that the validations array was global and always included a false when a previous element was invalid.

I fixed this by adding an array for each element, push all validation results to this el_validations and push the validation result from each element to the global array validations.

There is a bug where every valid element after an invalid element was marked/styled as invalid due the fact that the `validations` array was global and always included a `false` when a previous element was invalid.
@rafibomb
Copy link
Member

rafibomb commented Sep 4, 2014

@christianseel Is this the same resolution? #5606

@christianseel
Copy link
Author

@rafibomb Yes, both solve the same issue. Haven't tested #5606 but it looks like a very similar approach with minimal difference.

rafibomb added a commit that referenced this pull request Sep 5, 2014
fix bug where every valid element after an invalid was marked as invalid
@rafibomb rafibomb merged commit 1851f7a into foundation:master Sep 5, 2014
@rafibomb
Copy link
Member

rafibomb commented Sep 5, 2014

Sweet, nice job!

christianseel pushed a commit to christianseel/foundation that referenced this pull request Sep 11, 2014
This was introduced with foundation#5738.

The statement was in the wrong line. This fixes a bug where the validation of radios and checkboxes was not recognized in the final validation result.

Now it works great :)
@rafibomb rafibomb mentioned this pull request Sep 15, 2014
@cbmtrx
Copy link

cbmtrx commented Dec 4, 2014

I'm a little lost here with all these different threads...the version of abide that I JUST downloaded 10 minutes ago appears to still be showing all subsequent fields as invalid.

I might add that the email validation is, from what I can tell, only half-validation: as long as it includes the "@" sign it passes as valid, even if the rest of the email string is badly formatted. Why is it not validating the full structure?

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.

None yet

5 participants