Skip to main content

Bug Tracker

Side navigation

#13817 closed bug (notabug)

Opened April 24, 2013 09:25AM UTC

Closed April 24, 2013 01:23PM UTC

Last modified April 24, 2013 01:50PM UTC

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:

You can found an example here :

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.

Attachments (0)
Change History (4)

Changed April 24, 2013 01:23PM UTC by scottgonzalez comment:1

resolution: → notabug
status: newclosed

That's how forms work. This is unrelated to jQuery.

Changed April 24, 2013 01:36PM UTC by prometee comment:2

So the browsers are responsible...

Changed April 24, 2013 01:39PM UTC by scottgonzalez comment:3

Yes, and this will never change. This is intended behavior to make implicit form submission work.

Changed April 24, 2013 01:50PM UTC by prometee comment:4

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...