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.

Spinner doen't show when you set the active property in code.

See original GitHub issue

Bug Report or Feature Request (mark with an x)

- [X] bug report -> please search issues before submitting
- [ ] feature request

OS and Version?

Windows 10.

Versions

Angular 12.2.9 mat-progress-buttons 9.3.1

Repro steps

Open this Stackblitz and click the button.

Changes I made to your demo stackblitz:

  1. Updated the mat-progress-buttons to version 9.3.1.
  2. Replaced the demo code with your example code found here.
  3. updated the app.module so it will call the forRoot().
  4. Click the button in the output. This is not spinning.

Desired functionality

The button spinning when setting the active property in code.

Mention any other details that might be useful

This broke in v9.3.1.

#90 might be related

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

3reactions
izzmeiftercommented, Dec 30, 2021

On Angular 12+

Instead of mutating the object directly like

btnOpts.active = true

try using a spread operator like

btnOpts = { ...this.btnOpts, active: true };

Worked for us. Cheers

0reactions
experimintcommented, Jan 17, 2022

Downgrade to 9.2.1 works for me

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spinner does not show selected value - Stack Overflow
set values to your ArrayList first and then assign that arrayList to spinner. I declared a global arrayList and set it to spinner...
Read more >
Android Spinner - drop down list | DigitalOcean
In the default state, a spinner shows its currently selected value. Touching the spinner displays a drop down menu with all other available ......
Read more >
Spinners · Bootstrap v5.0
Bootstrap “spinners” can be used to show the loading state in your projects. They're built only with HTML and CSS, meaning you don't...
Read more >
Spinner and Progress Bar in Swift: Getting Started
In this tutorial, you'll build two kinds of progress indicators in an iOS app that displays high-quality photos of dahlias, a type of...
Read more >
PowerApps Tips and Tricks - Create loading spinners, add ...
In this video, you are going to learn from my bag of PowerApps tips and tricks. Configure a PowerApps Loading Spinner, different ways...
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