Skip to main content

Search and Top Navigation

#5029 closed bug (worksforme)

Opened December 31, 2009 04:28AM UTC

Closed September 08, 2011 10:00PM UTC

Last modified October 31, 2011 12:23PM UTC

Enter key does not submit modal dialog form in IE with hidden submit input

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

In IE6, IE7 & IE8: If you have a modal dialog with a form and a hidden submit button (<input type="submit" style="display:none;"/>), the form will not submit or give any response. I found that if the submit button is visible and in the dialog, it works.

This is currently reproducible in the demo on jqueryui.com

As a workaround I used the following CSS to hide the submit button while keeping the enter key to submit working in IE

input.submit {
  background : white;
  border:none;
  float : right;
  height : 1px !important;
  margin-top : -20px;
  width : 1px !important;
}
Attachments (0)
Change History (3)

Changed December 31, 2009 02:48PM UTC by scottgonzalez comment:1

milestone: TBD1.8

Changed September 08, 2011 10:00PM UTC by scottgonzalez comment:2

resolution: → worksforme
status: newclosed

Changed October 31, 2011 12:23PM UTC by fangspeen comment:3

I find that this still is a problem with IE 8 and jquery 1.6.4 + jquery ui 1.8.16