components icon indicating copy to clipboard operation
components copied to clipboard

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

Open mistrykaran91 opened this issue 7 months ago • 0 comments
trafficstars

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 avatar Apr 17 '25 08:04 mistrykaran91