Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linear Progress: fill doesn't update when value goes from 10 to 0 #7286

Closed
didimmova opened this issue May 7, 2020 · 1 comment · Fixed by #7585
Closed

Linear Progress: fill doesn't update when value goes from 10 to 0 #7286

didimmova opened this issue May 7, 2020 · 1 comment · Fixed by #7585
Assignees
Labels
🐛 bug Any issue that describes a bug linear-progress ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged.

Comments

@didimmova
Copy link
Contributor

Description

The fill in the linear progress bar doesn't go to 0 percent when the progress value goes from 10 to 0 percent.

Steps to reproduce

  1. Download the zip file below
  2. Run the sample
  3. Click the "+" button, the progress value goes to 10%
  4. Click the "-" button, the progress value goes to 0%, but the fill remains the same
  5. Click the "+" button again and see the fill refilling from 0 to 10 again.

Result

The fill remains at 10% when the value goes from 10% to 0%

Expected result

The fill should be empty when the progress value goes to 0%

Attachments

linear-dynamic-sample.zip

@amit-kohli
Copy link

Not by any means a solution, but only as a work around - use the value property i.e. after setting up the control with a template reference variable and using the ViewChild decorator in the controller,
this.linearBarRef.value = this.currentValue;

Hope this helps.
Amit

@Aleksandyr Aleksandyr added 🛠️ status: in-development Issues and PRs with active development on them and removed 🆕 status: new labels Jun 4, 2020
@Aleksandyr Aleksandyr added ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged. and removed 🛠️ status: in-development Issues and PRs with active development on them labels Jun 5, 2020
This was referenced Jun 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Any issue that describes a bug linear-progress ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged.
Projects
None yet
4 participants