Skip to content

Incorrect extra number of overlays with multiple dialog #2324

Closed
@guojenman

Description

@guojenman

Bug:

What is the expected behavior?

When instantiating multiple dialogs, there should be only one overlay and update it's z-index so that it's over the previous dialog

What is the current behavior?

One 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

What are the steps to reproduce?

http://plnkr.co/edit/hQKwfp?p=preview

click open modal 1 on main app + click open modal 2 in opened dialog

  1. you can still interact with dialog 1
  2. you see the overlay darken because there are now 2 overlays

What is the use-case or motivation for changing an existing behavior?

  1. By creating a new overlay for each opened dialog, it darkens then look of the overlay for each on that is opened
  2. 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

Which versions of Angular, Material, OS, browsers are affected?

Material: 2.0.0-alpha.11-3
Angular: All

Is there anything else we should know?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions