md-menu closing on any outside click
I am trying to make a menu but letting the user open another menu if clicked on it without having to close the first, first. So if the user clicked another menu, that click closes the first and opens the second How to change the default behaviour?!
md-menu behaviour in Angular Material. Its working now.
Yeah but I noticed something in that codepen, when I click on an empty area on the toolbar the menu doesn't close, it only close when clicking on white areas
It is a bug I guess. It should close.
@DevVersion Can you see this?
@Bassel-m Yes. Investigated a bit and found the problem. The backdrop has a lower z-index as the toolbar. That's why the menu isn't closing.
Yes but if you increase the z-index of the backdrop the menu behaviour changes hovering doesn't open the other menus :/
Since we need to be careful about changing the z-index, I marked this to require a team discussion.
This issue is closed as part of our deprecation effort. For details, see our post Spring Cleaning 2016.