Skip to content

Commit 91f18b8

Browse files
committed
refactor(progressbar): fix for 0 value
1 parent 10d55a1 commit 91f18b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/progress/base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export abstract class IgcProgressBaseComponent extends LitElement {
165165
const progress = this.max > 0 ? this.value / this.max : 0;
166166
const percentage = progress * 100;
167167

168-
if (percentage === this.percentage) return;
168+
if (this.value !== 0 && percentage === this.percentage) return;
169169

170170
const wholeValue = percentage;
171171
const integerValue = Math.floor(percentage);

0 commit comments

Comments
 (0)