Skip to content

Conversation

crisbeto
Copy link
Member

Currently mat-menu handles it keyboard events in the template, however this ignores the overlay's stacking context which can capture some events that it shouldn't.

These changes switch the menu to handling the events through the common dispatcher instead.

Fixes #29996.

@crisbeto crisbeto added the target: rc This PR is targeted for the next release-candidate label Nov 12, 2024
@crisbeto crisbeto requested a review from a team as a code owner November 12, 2024 10:11
@crisbeto crisbeto requested review from andrewseguin and mmalerba and removed request for a team November 12, 2024 10:11
Currently `mat-menu` handles it keyboard events in the template, however this ignores the overlay's stacking context which can capture some events that it shouldn't.

These changes switch the menu to handling the events through the common dispatcher instead.

Fixes angular#29996.
@crisbeto crisbeto force-pushed the 29996/menu-keyboard-handler branch from 301cde2 to d3b8b8f Compare November 14, 2024 13:21
@mmalerba mmalerba removed their request for review November 14, 2024 15:51
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Nov 14, 2024
@crisbeto crisbeto merged commit 42f6a4a into angular:main Nov 14, 2024
21 of 23 checks passed
crisbeto added a commit that referenced this pull request Nov 14, 2024
Currently `mat-menu` handles it keyboard events in the template, however this ignores the overlay's stacking context which can capture some events that it shouldn't.

These changes switch the menu to handling the events through the common dispatcher instead.

Fixes #29996.

(cherry picked from commit 42f6a4a)
@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 Dec 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker target: rc This PR is targeted for the next release-candidate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(MatMenu): Tooltip on menu options not dismissable

2 participants