Skip to content

Commit 6c2efa2

Browse files
committed
fix(Progress): Fix TypeError: Failed to set the 'value' property on 'HTMLProgressElement': The provided double value is non-finite.
1 parent 167ff09 commit 6c2efa2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/easy-adults-march.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte-ux': patch
3+
---
4+
5+
fix(Progress): Fix `TypeError: Failed to set the 'value' property on 'HTMLProgressElement': The provided double value is non-finite.`

packages/svelte-ux/src/lib/components/Progress.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</script>
1212

1313
<progress
14-
{value}
14+
value={value ?? 0}
1515
{max}
1616
{...$$restProps}
1717
class={cls(

0 commit comments

Comments
 (0)