I am using mat-menu, I am displaying a menu when the mouse enters the event for a specific button.it works fine.
But I want to close mat-menu when the mouse leaves the button. it is not working.
Please fin sample in below:
Reproduce steps
- open the above sample
- hover home icon, you can see menu popup gets opened
- move away before entering menu, you can see menu popup not get closed
- sample - https://stackblitz.com/edit/example-angular-material-toolbar-menu-vrobtz?file=app%2Fapp.component.html
Note - I have tried to use mouse-leave for that button but it start flickering