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 disappearing form pressing enter. #147

Merged
merged 5 commits into from
Jan 27, 2017

Conversation

Wybrenb
Copy link
Contributor

@Wybrenb Wybrenb commented Jan 27, 2017

Fix immediately disappearing form in inline mode, when pressing enter.

Scope

This pull request includes a

  • Bug fix

Related Issues

#128

Further information

A form will use the first button it encounters as the submit button, when it doesn't contain a type or is of the type 'submit'. Both the reset and the submit button have the type 'button'. The close button doesn't have a type. When enter is pressed, it will trigger the submit event. Which will trigger the close button. Which will, as coded in JavaScript, close the form.
See also: http://stackoverflow.com/questions/290215/difference-between-input-type-button-and-input-type-submit

@kartik-v kartik-v merged commit 24dfb1b into kartik-v:master Jan 27, 2017
@Wybrenb Wybrenb deleted the Fix-submitOnEnter-inline-form branch January 30, 2017 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants