Skip to content

MatDialog afterClosed before beforeClose with NoopAnimationsModule #7572

@kxlow

Description

@kxlow

Bug, feature request, or proposal:

Bug

What is the expected behavior?

beforeClose should be called before afterClosed when a dialog closes, even with NoopAnimationsModule being used.

What is the current behavior?

afterClosed is called before beforeClose when NoopAnimationsModule is being used.
Does not happen if using BrowserAnimationsModule

What are the steps to reproduce?

https://stackblitz.com/edit/angular-material2-issue-ehetcr

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

Incorrect behavior.

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

master

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