{"action":"created","issue":{"url":"https://api.github.com/repos/angular/material2/issues/2324","repository_url":"https://api.github.com/repos/angular/material2","labels_url":"https://api.github.com/repos/angular/material2/issues/2324/labels{/name}","comments_url":"https://api.github.com/repos/angular/material2/issues/2324/comments","events_url":"https://api.github.com/repos/angular/material2/issues/2324/events","html_url":"https://github.com/angular/material2/issues/2324","id":196955405,"number":2324,"title":"Incorrect extra number of overlays with multiple dialog","user":{"login":"guojenman","id":453390,"avatar_url":"https://avatars.githubusercontent.com/u/453390?v=3","gravatar_id":"","url":"https://api.github.com/users/guojenman","html_url":"https://github.com/guojenman","followers_url":"https://api.github.com/users/guojenman/followers","following_url":"https://api.github.com/users/guojenman/following{/other_user}","gists_url":"https://api.github.com/users/guojenman/gists{/gist_id}","starred_url":"https://api.github.com/users/guojenman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guojenman/subscriptions","organizations_url":"https://api.github.com/users/guojenman/orgs","repos_url":"https://api.github.com/users/guojenman/repos","events_url":"https://api.github.com/users/guojenman/events{/privacy}","received_events_url":"https://api.github.com/users/guojenman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-12-21T15:08:31Z","updated_at":"2016-12-22T12:41:10Z","closed_at":"2016-12-22T12:41:10Z","body":"#### Bug:\r\n\r\n\r\n#### What is the expected behavior?\r\nWhen instantiating multiple dialogs, there should be only one overlay and update it's z-index so that it's over the previous dialog\r\n\r\n#### What is the current behavior?\r\nOne overlay is create for each dialog and all of the z-index are always 1 so that it never hides the previous still opened dialog\r\n\r\n#### What are the steps to reproduce?\r\nhttp://plnkr.co/edit/hQKwfp?p=preview\r\n\r\nclick open modal 1 on main app + click open modal 2 in opened dialog\r\n1. you can still interact with dialog 1\r\n2. you see the overlay darken because there are now 2 overlays\r\n\r\n#### What is the use-case or motivation for changing an existing behavior?\r\n1. By creating a new overlay for each opened dialog, it darkens then look of the overlay for each on that is opened\r\n2. Should not be able to interact with dialog 1 until dialog 2 is closed, currently you can still click on \"open modal 2\" from dialog 1 which keeps creating dialog 2s and overlay keeps getting darker and darker for each overlay instantiated\r\n\r\n\r\n#### Which versions of Angular, Material, OS, browsers are affected?\r\nMaterial: 2.0.0-alpha.11-3 \r\nAngular: All\r\n\r\n#### Is there anything else we should know?\r\n"},"comment":{"url":"https://api.github.com/repos/angular/material2/issues/comments/268791799","html_url":"https://github.com/angular/material2/issues/2324#issuecomment-268791799","issue_url":"https://api.github.com/repos/angular/material2/issues/2324","id":268791799,"user":{"login":"guojenman","id":453390,"avatar_url":"https://avatars.githubusercontent.com/u/453390?v=3","gravatar_id":"","url":"https://api.github.com/users/guojenman","html_url":"https://github.com/guojenman","followers_url":"https://api.github.com/users/guojenman/followers","following_url":"https://api.github.com/users/guojenman/following{/other_user}","gists_url":"https://api.github.com/users/guojenman/gists{/gist_id}","starred_url":"https://api.github.com/users/guojenman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guojenman/subscriptions","organizations_url":"https://api.github.com/users/guojenman/orgs","repos_url":"https://api.github.com/users/guojenman/repos","events_url":"https://api.github.com/users/guojenman/events{/privacy}","received_events_url":"https://api.github.com/users/guojenman/received_events","type":"User","site_admin":false},"created_at":"2016-12-22T12:41:10Z","updated_at":"2016-12-22T12:41:10Z","body":"@crisbeto your build looks like the right behavior. Thank you."}}
{"actor":{"display_login":"guojenman"}}