#13817 closed bug (notabug)
keypress on input text fire click on the first button or input[type=submit]
Reported by: | prometee | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.9.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
You can found an example here : http://jsfiddle.net/Prometee/BZwEe/6/
When you hit enter in the input text a click is fired (perhaps by the navigator) on the button.
If you remove the button element this code works as expected.
Change History (4)
comment:1 Changed 10 years ago by
Resolution: | → notabug |
---|---|
Status: | new → closed |
comment:3 Changed 10 years ago by
Yes, and this will never change. This is intended behavior to make implicit form submission work.
comment:4 Changed 10 years ago by
Ok but I don't understand why a simple button is clicked while logically only input[type=submit] should submit a form.
But ok this is a general behavior...
Note: See
TracTickets for help on using
tickets.
That's how forms work. This is unrelated to jQuery.