You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Botch of focus return when dismissing Modal by clicking outside #51722
When a modal is dismissed, focus is expected to return to the element that opened the modal. This fails when dismissing a modal by clicking outside it.
Step-by-step reproduction instructions
Start in the Post Editor
Open the Options menu
Open the Preferences modal
Click outside the Preferences modal to dismiss it
Observe the Options menu is still open and clicking or focus other elements does not cause it to close.
Screenshots, screen recording, code snippet
Here are a couple instances of the issue but there are more uses of Modal that are probably affected.
This is a ConfirmDialog which is built on top of Modal. I would expect the visibility dropdown menu would stay open and the focus return to the 'private' radio.
Activity