Skip to content

[Checkbox] Animation runs while selected if moved in an ngFor #10575

Closed
@avechuche

Description

@avechuche

Bug, feature request, or proposal:

Bug

What is the expected behavior?

What is the current behavior?

After unchecking and checking again, checkboxes flash, which would be wrong.

What are the steps to reproduce?

  1. Click on the global checkbox to select all rows
  2. Decheck some checkboxes from the rows
  3. Re-select the unchecked checkboxes
  4. Click repeatedly on the head of the table to order the rows
  5. See how the selected checkboxes flash when ordering the rows

q20lh

In this example (https://stackblitz.com/edit/angular-9p1ppm) you can reproduce the error

This example (https://stackblitz.com/edit/angular-material2-table-wjmlw9) does not have that error but it is an old version of mat-table

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

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

All browsers
All Windows
Material 5.2.4

Is there anything else we should know?

Metadata

Metadata

Assignees

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