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

Submitting a form should fire click on first submit button #65

Open
dkordik opened this issue Sep 19, 2014 · 0 comments · May be fixed by #66
Open

Submitting a form should fire click on first submit button #65

dkordik opened this issue Sep 19, 2014 · 0 comments · May be fixed by #66

Comments

@dkordik
Copy link

dkordik commented Sep 19, 2014

Also, elements default to type "submit" if unspecified.

Illustrated in this jsfiddle: http://jsfiddle.net/dkordik/y25r4qnp/

I have a pull request to fix this incoming

dkordik added a commit to dkordik/syn that referenced this issue Sep 19, 2014
When you press enter on an input inside of a form, the browser fires a submit event on the form, and also fires a click event on the first submit button of the form, if there is one. <button> elements default to type "submit" if a type is not specified.

This behavior is illustrated in this jsfiddle: http://jsfiddle.net/dkordik/y25r4qnp/

Closes bitovi#65
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 a pull request may close this issue.

1 participant