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

Clear validation empty non-required input #34

Closed
wraithgar opened this issue Apr 12, 2014 · 1 comment
Closed

Clear validation empty non-required input #34

wraithgar opened this issue Apr 12, 2014 · 1 comment
Labels

Comments

@wraithgar
Copy link
Contributor

From issue #19

If a field has the required attribute set to false and you type something incorrect (invalid) in the input and try and submit the form it shows the error message, this is working fine. It is only when you then empty the input and and try and validate the form again the message will stay.
For example do this on the test from in the happy.js pack. Set the email required attribute to false and when you test leave the name field empty, then type an invalid email into the email input, submit the from, then remove the content from the email input and submit again.

The original issue ended up taking on a life of its own cause of a UI bug so I'm duplicating this here cause the original issue (don't clear validation errors on required elements simply cause the element was cleared and blurred) still stands IMO

@wraithgar
Copy link
Contributor Author

Ok after fixing issue #19 this behavior does not seem to happen anymore. Yay!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant