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

Error DOM pushes submit button out from under the mouse #19

Closed
zizther opened this issue Jul 24, 2012 · 5 comments
Closed

Error DOM pushes submit button out from under the mouse #19

zizther opened this issue Jul 24, 2012 · 5 comments
Labels

Comments

@zizther
Copy link

zizther commented Jul 24, 2012

This issue ended up drifing into a new issue, for the original go here #34

@wraithgar
Copy link
Contributor

What I did:

  • changed email required to false in demo.html
  • opened demo.html
  • typed 'asdf' into email field
  • clicked submit

What I expected:

  • Error in both fields, since name was required and empty

What I saw:

  • Error in only email field

@wraithgar wraithgar added the bug label Mar 2, 2014
@wraithgar
Copy link
Contributor

This only looks like a bug. What is happening is the blur event is firing because your input is in the email field when you click submit, the blur event fires, the submit does not.

Edit: I mean this is a bug, just not the one we think it is.

@wraithgar
Copy link
Contributor

good solution
https://cloudup.com/cg3NK38GPzV
fallback solution
https://cloudup.com/cSysFv6iZEi

@wraithgar
Copy link
Contributor

Those solutions feel less than ideal and I have no idea if this is even really a bug or if it should be addressed in the documentation.

@wraithgar wraithgar changed the title Clear validation empty non-required input Error DOM pushes submit button out from under the mouse Apr 12, 2014
@wraithgar
Copy link
Contributor

Gonna throw this in the mix now? https://gist.github.com/WebReflection/2953527

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

2 participants