Skip to main content

Search and Top Navigation

#8253 closed bug (duplicate)

Opened April 12, 2012 09:32AM UTC

Closed October 16, 2012 12:19PM UTC

Wrong dialog closes on pressing esc twice on multiple modal dialogs

Reported by: AllanKnox Owned by:
Priority: minor Milestone: 1.10.0
Component: ui.dialog Version: 1.8.18
Keywords: Cc:
Blocked by: Blocking:

If multiple modal dialogs are opened, the close-order on pressing the escape-key is wrong.


> at start: Dialog 1 opens

  • click "open Dialog 2"

> Dialog 2 opens

  • click "open Dialog 3"

> Dialog 3 opens

  • press escape-key

> Dialog 3 closes

  • on Chrome, Opera and Safari: click at the grayed area outside the dialogs (this step is optional in FF and IE)

> nothing visible happens

  • press escape-key again

> Dialog 1 closes

Tested on FF11, IE9, Opera 11.62, Safari 5.1.1 and Chrome 18 (all on Win 7).

The bug exists at least since 1.8.17 (probably older)

I haven´t managed to get a workaround by using .dialog( "moveToTop" ) at Dialog 2 after closing Dialog 3. Triggering .focus() didn´t work as well.

Attachments (0)
Change History (4)

Changed October 11, 2012 02:47PM UTC by scottgonzalez comment:1


Changed October 15, 2012 06:57PM UTC by drewkimrey comment:2

status: newopen

I wasn't able to replicate dialogs closing in the wrong order, however I did notice that if multiple dialogs are open the parent dialog isn't focused after esc

Changed October 16, 2012 08:29AM UTC by AllanKnox comment:3

Indeed, seems the bug is (half-)fixed in 1.9.0.

I studied the changelog and found a duplicate ticket that is now fixed:

However, the focus problem persists, as you described.

Changed October 16, 2012 12:19PM UTC by scottgonzalez comment:4

resolution: → duplicate
status: openclosed

Duplicate of #8300.The focus on close behavior will change with the API redesign.