Closed

Description
Bug, feature request, or proposal:
When opening a snackbar after the close event of Dialog the snackbar is never dismissed
What is the expected behavior?
The snackbar should be dismissed/closed after the duration timout
What is the current behavior?
The snackbar never dismisses. When moved out of the subscribe block of the afterClosed function it works but thats not the intended behaviour
What are the steps to reproduce?
let dialogRef = this.dialog.open(DeleteChapterDialogComponent);
dialogRef.afterClosed().subscribe((result: any) => {
this.snackBar.open('LOL','OK', { duration: 100 });
});
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
"@angular": "4.1.3",
"@angular/material": "2.0.0-beta.8",
Metadata
Metadata
Assignees
Labels
No labels