Fix issue with nullish progress value in progress circle component
This commit is contained in:
parent
937f5ece53
commit
4da58241b3
|
@ -17,6 +17,8 @@
|
||||||
export let minValue = 0
|
export let minValue = 0
|
||||||
export let maxValue = 100
|
export let maxValue = 100
|
||||||
|
|
||||||
|
$: console.log(value)
|
||||||
|
|
||||||
let subMask1Style
|
let subMask1Style
|
||||||
let subMask2Style
|
let subMask2Style
|
||||||
$: calculateSubMasks(value)
|
$: calculateSubMasks(value)
|
||||||
|
@ -42,7 +44,7 @@
|
||||||
|
|
||||||
<div
|
<div
|
||||||
on:click
|
on:click
|
||||||
class:spectrum-ProgressCircle--indeterminate={!value}
|
class:spectrum-ProgressCircle--indeterminate={value == null}
|
||||||
class:spectrum-ProgressCircle--overBackground={overBackground}
|
class:spectrum-ProgressCircle--overBackground={overBackground}
|
||||||
class="spectrum-ProgressCircle spectrum-ProgressCircle--{convertSize(size)}"
|
class="spectrum-ProgressCircle spectrum-ProgressCircle--{convertSize(size)}"
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue