Skip to main content

Search and Top Navigation

#10032 closed bug (wontfix)

Opened May 09, 2014 07:04PM UTC

Closed May 09, 2014 07:49PM UTC

indicate in 'close' or 'beforeclose' that initial focus element no longer exists

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

The fix for #8730 introduced focus handling for closing a dialog. However, if the dialog was opened from an option in a menu, then the element that had focus when it was opened no longer exists in the DOM when it is closing. There should be some sort of indicator for devs to pick up in the 'close' or 'beforeclose' event that indicates the focus element no longer exists so that they can manage focus instead of allowing focus to go to the body element.

Attachments (0)
Change History (1)

Changed May 09, 2014 07:49PM UTC by scottgonzalez comment:1

resolution: → wontfix
status: newclosed

Your code opened the dialog, so your code can detect this pretty easily.