Skip to content

Conversation

@crisbeto
Copy link
Member

The sidenav isn't an overlay so it doesn't participate in the common event handling. This means that if there's an overlay in it that closes by pressing escape, the sidenav will close instead of the overlay.

These changes add a check that will skip escape key presses while there are open overlays.

Fixes #30507.

@crisbeto crisbeto added the target: patch This PR is targeted for the next patch release label Mar 25, 2025
@crisbeto crisbeto requested a review from a team as a code owner March 25, 2025 08:41
@crisbeto crisbeto requested review from mmalerba and wagnermaciel and removed request for a team March 25, 2025 08:41
The sidenav isn't an overlay so it doesn't participate in the common event handling. This means that if there's an overlay in it that closes by pressing escape, the sidenav will close instead of the overlay.

These changes add a check that will skip escape key presses while there are open overlays.

Fixes angular#30507.
@crisbeto crisbeto force-pushed the 30507/sidenav-escape branch from f1af7c1 to d8d40f0 Compare March 25, 2025 08:54
@crisbeto
Copy link
Member Author

I ran this through our internal tests which revealed some places where this would've been breaking. Will close so we can figure out a different approach.

@crisbeto crisbeto closed this Mar 25, 2025
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Apr 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area: material/sidenav target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(MatSelect): When panel is displayed inside a SideNav, it stays opened on Escape button

1 participant