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
When having the following component, the close event listener of the drawer is not triggered because the focus of the activeElement is not on the drawer, but on the body element.
That also leads to the drawer being closed but it cannot be opened anymore.
When the drawer is open, press the escape key. The close event listener is triggered and an alert is displayed (That is the correct behavior).
Close the alert.
Click on the button with the text "A button". The button disappears which leads to the focus of the active element being on the body, not the drawer anymore.
Press the escape key. The close event listener and the onClose method is not called because the activeElement is the html body Element, not the Drawer. The drawer is closed but cannot be opened anymore.
Which generators are impacted?
Reproduction case
When having the following component, the close event listener of the drawer is not triggered because the focus of the activeElement is not on the drawer, but on the body element.
That also leads to the drawer being closed but it cannot be opened anymore.
Steps to reproduce:
Potentially related to #3412
Expected Behaviour
The focus should always stay in the drawer as long as the drawer is open and the close event listener is triggered when pressing the escape key.
Screenshots
No response
Browser version
None
Add any other context about the problem here.
No response
The text was updated successfully, but these errors were encountered: