-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/menu
Description
What is the expected behavior?
I am using mat menu without backdrop.
I am trying to open mat-menu with two different triggers
When we click on triggers it should close and open mat menu correctly.
What is the current behavior?
- When I click on first trigger button it opens mat menu
- When I click on second trigger it opens mat-menu
- When I again click on first trigger it doesn't open mat-menu
- Again if click on first trigger then it will open mat-menu
What are the steps to reproduce?
Have a look on below stackblitz
https://stackblitz.com/edit/angular-yvk7bv
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 7+
Is there anything else we should know?
I checked in DOM when I click on first trigger button it adds div with class cdk-overlay-connected-position-bounding-box
, when I click on second trigger again it adds one more div with same class.
It seems it is not destroying properly.
amilaI, KimAlexander and vaindil
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/menu