Skip to content

fix(cdk/menu): close sibling triggers when opening a menu #30894

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mistrykaran91
Copy link
Contributor

@mistrykaran91 mistrykaran91 commented Apr 17, 2025

Currently, when any sibling menu is opened then it overlaps and in cases it freezes and makes the screen unresponsive. This fix will close any sibling menu if its open.

BREAKING CHANGE:

  • Relocate the class ContextMenuTracker to file src/cdk/menu/menu-trigger-base.ts so that it is at the common location for both the menu triggers.
  • Rename the class ContextMenuTracker to MenuTracker so that can be used by both CdkMenuTrigger and CdkContextMenuTrigger.

Fixes #30881

@mistrykaran91 mistrykaran91 requested a review from a team as a code owner April 17, 2025 08:40
@mistrykaran91 mistrykaran91 requested review from adolgachev and crisbeto and removed request for a team April 17, 2025 08:40
@mistrykaran91 mistrykaran91 force-pushed the fix/cdk-menu-screen-freeze-issue branch 6 times, most recently from 5a9dafd to 63bd6a1 Compare April 18, 2025 14:20
Currently, when any sibling menu is opened then it overlaps and in cases it makes the screen unresponsive. This fix will close any sibling menu if its open

Fixes angular#30881
@mistrykaran91 mistrykaran91 force-pushed the fix/cdk-menu-screen-freeze-issue branch from 63bd6a1 to 269e23c Compare April 18, 2025 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant