Skip to content

bug(expansion-panel): Disable animation with [@.disabled]="true" stopped working in Angular 10 #20768

Open
@BeniFreitag

Description

Reproduction

Steps to reproduce:

  1. create a simple mat-expansion-panel like this
<mat-expansion-panel [@.disabled]="true">
  1. Click on the header. You'll see an animation while the body is expanded.

Demo: see https://stackblitz.com/edit/mat-expansion-panel-10?file=src/app/expansion-overview-example.html (Angular 10)

Expected Behavior

Expand-Animation should be disabled. This worked in Angular 6 to 9.

Demo: see https://stackblitz.com/edit/mat-expansion-panel-9?file=src/app/expansion-overview-example.html (Angular 9)

Actual Behavior

Animation occurs when expanding.

Environment

  • Angular: 10.2.4
  • CDK/Material: 10
  • Browser(s): Chrome 85
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: material/expansion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions