Skip to main content

Search and Top Navigation

#7807 closed bug (duplicate)

Opened October 22, 2011 04:10AM UTC

Closed October 22, 2011 06:43AM UTC

Last modified October 22, 2011 02:02PM UTC

Form in modal dialog submits on enter keypress if only one field present

Reported by: jcstarck Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.dialog Version: 1.8.16
Keywords: Cc:
Blocked by: Blocking:
Description

This is a bug. The #6967 is valid. Just make a simple test with a modal dialog with only one input text. When the dialog open just press enter. The page is submitted like a refresh page. I tested with firefox 7.01 and IE 8.

Attachments (0)
Change History (4)

Changed October 22, 2011 06:43AM UTC by gnarf comment:1

resolution: → duplicate
status: newclosed

Thanks for your contribution, however please do not intentionally create duplicate tickets.

Changed October 22, 2011 06:43AM UTC by gnarf comment:2

Duplicate of #6967.

Changed October 22, 2011 12:43PM UTC by jcstarck comment:3

Replying to [comment:2 gnarf]:

Duplicate of #6967.

Ok. But why is #6967 closed? Please, take a look in:

jsFiddle (two inputs): http://jsfiddle.net/4PFWk/

jsFiddle (one input): http://jsfiddle.net/h7n2Y/

Changed October 22, 2011 02:02PM UTC by rdworth comment:4

Ticket #6967 is quite clear on why it invalid. Please reference the very next comment http://bugs.jqueryui.com/ticket/6967#comment:3 that has two fiddles that show this behavior is present in browsers without even JavaScript