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 there are multiple modeless dialog overlays open at the same time, the focusTrap enabled by the one that was opened later always steals focus, event if the other dialog is now the topmost after bringToFront() on its overlay.
Expected outcome
There are two possible options here:
Update OverlayFocusMixin logic in the overlay to respect the overlay stack so that only topmost overlay traps focus (this would require changes to how FocusTrapController and AriaModalController are handled)
Do not apply focusTrap at all when the modeless property is set (this could be limited to vaadin-dialog).
Description
When there are multiple
modeless
dialog overlays open at the same time, thefocusTrap
enabled by the one that was opened later always steals focus, event if the other dialog is now the topmost afterbringToFront()
on its overlay.Expected outcome
There are two possible options here:
OverlayFocusMixin
logic in the overlay to respect the overlay stack so that only topmost overlay traps focus (this would require changes to howFocusTrapController
andAriaModalController
are handled)focusTrap
at all when themodeless
property is set (this could be limited tovaadin-dialog
).Minimal reproducible example
Steps to reproduce
Environment
Vaadin version(s): 24.x and earlier
Browsers
Issue is not browser related
The text was updated successfully, but these errors were encountered: