Skip to main content

Search and Top Navigation

#9408 closed bug (wontfix)

Opened June 28, 2013 05:15AM UTC

Closed September 30, 2013 12:15PM UTC

Dialog: Overlay for modal not removed when dialog opened on focus

Reported by: ajmccluskey Owned by:
Priority: minor Milestone: none
Component: ui.dialog Version: 1.10.3
Keywords: Cc:
Blocked by: Blocking:
Description

If a dialog is opened as a result of a focus event, its overlay is not removed when the dialog is closed. A jsFiddle demonstrating the issue may be found at http://jsfiddle.net/ajmccluskey/7fy3u.

I have tested the issue with both

<input type="text" ... />

and

<textarea>

elements.

The issue does not occur with jquery ui 1.9.2. This may be tested in the jsFiddle by commenting/uncommenting the included scripts, or by opening this alternate jsFiddle: http://jsfiddle.net/ajmccluskey/7fy3u/4.

I have observed this issue in the following browsers:

  • Chrome 27.0.1453.116
  • Firefox 21.0
  • Safari 6.0.5 (8536.30.1)
Attachments (0)
Change History (3)

Changed June 28, 2013 12:17PM UTC by tj.vantoll comment:1

status: newopen
summary: Overlay for modal dialog not removed when dialog opened on focusDialog: Overlay for modal not removed when dialog opened on focus

Changed September 16, 2013 12:52PM UTC by jzaefferer comment:2

Slighlty simplified jsfiddle, shows the issue directly: http://jsfiddle.net/GHnsb/1/

Changed September 30, 2013 12:15PM UTC by jzaefferer comment:3

resolution: → wontfix
status: openclosed

Opening a dialog inside a focus event is a terrible idea to start with. It would also result in an infinite focus loop, when the dialog closes and tries to move the focus back to the opener, causing the dialog to open again.