Skip to content

Snackbar not dismissed immediately after Dialog is Closed #6763

Closed
@ghost

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

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