Skip to content

Conversation

@Veribelll
Copy link
Contributor

The esc button was processed only in the overlay, which led to the container not closing in sidenav.

Fixes #30507

The esc button was processed only in the overlay, which led to the container not closing in sidenav.

Fixes angular#30507
@Veribelll Veribelll marked this pull request as ready for review February 19, 2025 18:59
@Veribelll Veribelll requested a review from a team as a code owner February 19, 2025 18:59
@Veribelll Veribelll requested review from andrewseguin and crisbeto and removed request for a team February 19, 2025 18:59
hasDeselectedOptions ? option.select() : option.deselect();
}
});
} else if (event.keyCode === ESCAPE && !hasModifierKey(event)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While this would fix the issue at the moment, we have a TODO to move all of this logic into _handleOverlayKeydown for better interop with the rest of the overlays. Once that happens the sidenav use case will break again so I'm not sure we should land the change just to have it regress later.

@Veribelll Veribelll closed this Feb 20, 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 Mar 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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

2 participants