Opened 9 years ago
Closed 9 years ago
#10032 closed bug (wontfix)
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.
Note: See
TracTickets for help on using
tickets.
Your code opened the dialog, so your code can detect this pretty easily.