Skip to content

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

Closed

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.

Activity

  1. added
    G
    on Nov 26, 2018
  2. added
    needs triage
    on May 20, 2020
  3. added
    animation
    P4
    and removed
    needs triage
    on May 26, 2020
  4. added 2 commits that reference this issue on Dec 5, 2024
    bcfd6c3
    b35c757
  5. added 2 commits that reference this issue on Dec 5, 2024
    7b64c45
    aafa151
  6. angular-automatic-lock-bot commented on Jan 5, 2025

    @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.

  7. locked and limited conversation to collaborators on Jan 5, 2025
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

    GP4animationarea: material/expansion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions