Skip to content

MdSnackBar does not close when MdDialog is closed #2190

@jermowery

Description

@jermowery

Bug, feature request, or proposal:

Bug

What is the expected behavior?

MdSnackBar should be closed automatically when it's host MdDialog is destroyed or should be closable in ngOnDestroy.

What is the current behavior?

MdSnackBar remains open even after it's host MdDialog is destroyed. The SnackBar will be unresponsive with the buttons unclickable.

What are the steps to reproduce?

  1. Open an MdSnackBar from an MdDialog.
  2. Close the MdDialog

Plunker with the behavior: http://plnkr.co/edit/xrf3OSZec4J1w2MncFbY?p=preview

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

Better user and developer experience

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

Angular 2, Material 2

Metadata

Metadata

Assignees

Labels

P2The issue is important to a large percentage of users, with a workaround

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions