Skip to content

mat-expansion-panel's content hides immediately, outrunning the panel's animation #14075

Closed
@jimmyzzxhlh

Description

@jimmyzzxhlh

Bug, feature request, or proposal:

Bug
This is basically another version of issue 10134.

What is the expected behavior?

When hiding the expansion panel using animations, the header and the content of the expansion panel should both respect the animations.

What is the current behavior?

Only the header respects the animation, the body doesn't.
Notice that showing expansion panel using animation does work correctly.

What are the steps to reproduce?

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

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

This is a bug found when we try to define some fade-in/fade-out animation for the expansion panel.

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

Angular Material 5.2.6

Is there anything else we should know?

N/A.

Metadata

Metadata

Assignees

No one assigned

    Labels

    GThis is is related to a Google internal issueP4A relatively minor issue that is not relevant to core functionsanimationThis issue is related to Angular animations or CSS animationsarea: material/expansion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions