Skip to content

Snackbar not dismissed immediately after Dialog is Closed #6763

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",

Activity

  1. ghost changed the title [-]Snackbar not dismissed immediately after Dialog[/-] [+]Snackbar not dismissed immediately after Dialog is Closed[/+] on Aug 31, 2017
  2. josephperrott commented on Aug 31, 2017

    @josephperrott
    Member

    @teterovic can you provide a plunker with a reproduction?

    I was unable to reproduce this error myself on plunker.

  3. willshowell commented on Sep 1, 2017

    @willshowell
    Contributor

    Maybe related to #6719?

  4. josephperrott commented on Sep 1, 2017

    @josephperrott
    Member

    @teterovic I was able to confirm that this is resolved with #6736.

  5. angular-automatic-lock-bot commented on Jun 2, 2021

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  6. locked and limited conversation to collaborators on Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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