question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug(MatCheckbox): Missing animation from indeterminate to checked

See original GitHub issue

Reproduction

Missing animation from indeterminate to checked - stackbliz

Expected Behavior

Check icon should animate every time when status/state is changed from indeterminate to checked.

Actual Behavior

If first, initial value of status is indeterminate the spinnig animation is working fine. At the second attempt, changing from indeterminate to checked, the box is strangely blinking and there is no spinning animation.

Environment

     _                      _                 ____ _     ___ 
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | | 
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | | 
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 10.0.3
Node: 12.15.0
OS: win32 x64

Angular: 10.0.4
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Ivy Workspace: Yes

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.1000.3
@angular-devkit/build-angular     0.1000.3
@angular-devkit/build-optimizer   0.1000.3
@angular-devkit/build-webpack     0.1000.3
@angular-devkit/core              10.0.3
@angular-devkit/schematics        10.0.3
@angular/cdk                      10.1.0
@angular/cli                      10.0.3
@angular/flex-layout              10.0.0-beta.32
@angular/material                 10.1.0
@ngtools/webpack                  10.0.3
@schematics/angular               10.0.3
@schematics/update                0.1000.3
rxjs                              6.6.0
typescript                        3.9.7
webpack                           4.43.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
FredericGryspeerdtcommented, Dec 14, 2021

Any updates on this? We experience the same behavior in Angular 10.2.3 and Angular Material 10.2.3.

edit: I’ve found our particular issue and workaround. The order of the template attributes mattered (and possibly the timing of the binded property updates). Broken animation:

  1. [determinate]
  2. [checked]

Workaround:

  1. [checked]
  2. [determinate]
<mat-checkbox
     [checked]=""
     [indeterminate]=""
     (change)=""
></mat-checkbox>
0reactions
angular-automatic-lock-bot[bot]commented, Dec 1, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular mat-checkbox indeterminate not behaving as expected
In the documentation of Angular Material, it is stated that: check-indeterminate: Default behavior of mat-checkbox. Always set indeterminate ...
Read more >
mat-checkbox, Angular material checkbox component Usage ...
And if the checkbox contain both indeterminate and checked properties true. Then it will displayed as indeterminate state. <mat-checkbox indeterminate="true" ...
Read more >
Angular Material Checkbox Tutorial - YouTube
This tutorial shows that how to use the Angular Material Checkbox with different use cases.This Video would explain the following ...
Read more >
Angular Material Checkbox - YouTube
Step by step beginner's tutorial on how to use Angular Material Checkbox. This is used to indicate an item as selected, marked, ...
Read more >
Angular Mat Table Checkbox Select All (forked) - StackBlitz
Table with selection.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found