components
components copied to clipboard
fix(cdk/menu): close sibling triggers when opening a menu
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
ContextMenuTrackerto filesrc/cdk/menu/menu-trigger-base.tsso that it is at the common location for both the menu triggers. - Rename the class
ContextMenuTrackertoMenuTrackerso that can be used by bothCdkMenuTriggerandCdkContextMenuTrigger.
Fixes #30881