Skip to content

Commit 3b128a3

Browse files
committed
Delegate the location change event to top-level dialog provider.
1 parent 8f52e18 commit 3b128a3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib/dialog/dialog.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ export class MdDialog {
5656
// Close all of the dialogs when the user goes forwards/backwards in history or when the
5757
// location hash changes. Note that this usually doesn't include clicking on links (unless
5858
// the user is using the `HashLocationStrategy`).
59-
_location.subscribe(() => this.closeAll());
59+
if (!_parentDialog) {
60+
_location.subscribe(() => this.closeAll());
61+
}
6062
}
6163

6264
/**

0 commit comments

Comments
 (0)