We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36896f1 commit ddc7053Copy full SHA for ddc7053
packages/svelte/src/internal/client/dom/elements/attributes.js
@@ -56,7 +56,8 @@ export function set_value(element, value) {
56
var attributes = (element.__attributes ??= {});
57
if (
58
attributes.value === (attributes.value = value) ||
59
- // @ts-expect-error <progress> elements report 0 value, but that might not really be 0
+ // @ts-expect-error
60
+ // `progress` elements always need their value set when its `0`
61
(element.value === value && (value !== 0 || element.nodeName !== 'PROGRESS'))
62
)
63
return;
0 commit comments