Skip to content

Commit 514b6cf

Browse files
committed
fix: ensure value is correctly set to zero on the progress element
1 parent ddc7053 commit 514b6cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/svelte/src/internal/client/dom/elements/attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export function set_value(element, value) {
5656
var attributes = (element.__attributes ??= {});
5757
if (
5858
attributes.value === (attributes.value = value) ||
59-
// @ts-expect-error
59+
// @ts-expect-error
6060
// `progress` elements always need their value set when its `0`
6161
(element.value === value && (value !== 0 || element.nodeName !== 'PROGRESS'))
6262
)

0 commit comments

Comments
 (0)