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
bug(cdk/overlay): cdkConnectedOverlay closes on escape even when another overlay is open #22694
changed the title [-]bug(menu): parent overlay is closed when pressing Escape[/-][+]bug(cdk/overlay): cdkConnectedOverlay closes on escape even when another overlay is open[/+]on May 13, 2021
This is specifically the behavior of the cdkConnectedOverlay directive, which always closes on escape without doing any extra checking. To work around, you could manually use the Overlay service which gives more control over the escape behavior. Alternatively, you can set disableClose on cdkConnectedOverlay and either conditionally re-enable it or manually close on escape.
@jelbourn are you sure that this is a bug in cdkConnectedOverlay?
There is no such issue with autocomplete or datepicker.
Both of them are somehow stopping Escape propagation.
Shouldn't menu do the same?
Activity
[-]bug(menu): parent overlay is closed when pressing Escape[/-][+]bug(cdk/overlay): cdkConnectedOverlay closes on escape even when another overlay is open[/+]jelbourn commentedon May 13, 2021
This is specifically the behavior of the
cdkConnectedOverlaydirective, which always closes on escape without doing any extra checking. To work around, you could manually use theOverlayservice which gives more control over the escape behavior. Alternatively, you can setdisableCloseoncdkConnectedOverlayand either conditionally re-enable it or manually close on escape.igodorogea commentedon May 13, 2021
@jelbourn are you sure that this is a bug in
cdkConnectedOverlay?There is no such issue with
autocompleteordatepicker.Both of them are somehow stopping Escape propagation.
Shouldn't
menudo the same?jelbourn commentedon May 18, 2021
I see- it looks like it could be fixed on either side, then.
1 remaining item
fix(material/menu): not interrupting keyboard events to other overlays
fix(material/menu): not interrupting keyboard events to other overlays (
fix(material/menu): not interrupting keyboard events to other overlays (
fix(material/menu): not interrupting keyboard events to other overlays
angular-automatic-lock-bot commentedon Jul 8, 2021
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
fix(material/menu): not interrupting keyboard events to other overlays
fix(material/menu): not interrupting keyboard events to other overlays (
fix(material/menu): not interrupting keyboard events to other overlays (
fix(material/menu): not interrupting keyboard events to other overlays (
fix(material/menu): not interrupting keyboard events to other overlays
fix(material/menu): not interrupting keyboard events to other overlays (
fix(material/menu): not interrupting keyboard events to other overlays (
fix(material/menu): not interrupting keyboard events to other overlays (