Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Closing md-menu with a click or tap outside (+Bug) #3411

Closed
jproby opened this issue Jun 23, 2015 · 5 comments
Closed

Closing md-menu with a click or tap outside (+Bug) #3411

jproby opened this issue Jun 23, 2015 · 5 comments
Assignees
Milestone

Comments

@jproby
Copy link

jproby commented Jun 23, 2015

I don't know if it's the desired behavior but my md-menu only close when selecting an item or pressing Esc key. It would be great to be able to close it when clicking outside.
I think there is a bug (FF, Chrome) because if you click outside the menu then you're stuck and it won't listen to Esc events anymore.
You can reproduce with the online demo.

@mukilane
Copy link

+1 in FireFox

@imjoeybrennan
Copy link

I don't see this in Chrome 43.0.2357.130. What is your Chrome version?

Edit: Interesting, md-scroll-mask is z-index: -1 in Chrome 43.0.2357.130 and z-index: 98 in FF. md-backdrop, which should handle the menu close, is below this at z-index: 50.

@jelbourn
Copy link
Member

@rschmukler I see this problem in IE (10 & 11) as well.

@sitic
Copy link

sitic commented Jun 25, 2015

This seems to be a duplicate of #3283, is already fixed in master. Possible hotfix is

.md-scroll-mask {
  z-index: 0 !important;
}

@rschmukler rschmukler added this to the 0.10.1 milestone Jun 25, 2015
@rschmukler rschmukler self-assigned this Jun 25, 2015
@jproby
Copy link
Author

jproby commented Jun 26, 2015

This pb is indeed resolved in master.

@jproby jproby closed this as completed Jun 26, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants