material icon indicating copy to clipboard operation
material copied to clipboard

md-menu closing on any outside click

Open Bassel-m opened this issue 10 years ago • 8 comments

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?!

Bassel-m avatar Mar 12 '16 14:03 Bassel-m

md-menu behaviour in Angular Material. Its working now.

Nextt1 avatar Mar 13 '16 05:03 Nextt1

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

Bassel-m avatar Mar 13 '16 06:03 Bassel-m

It is a bug I guess. It should close.

Nextt1 avatar Mar 13 '16 07:03 Nextt1

@DevVersion Can you see this?

Bassel-m avatar Mar 13 '16 10:03 Bassel-m

@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.

devversion avatar Mar 13 '16 10:03 devversion

Yes but if you increase the z-index of the backdrop the menu behaviour changes hovering doesn't open the other menus :/

Bassel-m avatar Mar 13 '16 10:03 Bassel-m

Since we need to be careful about changing the z-index, I marked this to require a team discussion.

Source

devversion avatar Mar 13 '16 10:03 devversion

This issue is closed as part of our deprecation effort. For details, see our post Spring Cleaning 2016.

ThomasBurleson avatar Apr 28 '16 19:04 ThomasBurleson