Fix issue with nullish progress value in progress circle component

This commit is contained in:
Andrew Kingston 2021-09-10 08:25:14 +01:00
parent 937f5ece53
commit 4da58241b3
1 changed files with 3 additions and 1 deletions

View File

@ -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)}"
> >