fix: ensure value is correctly set to zero on the progress element

pull/13924/head
Dominic Gannaway 2 years ago
parent ddc70533cb
commit 514b6cf408

@ -56,7 +56,7 @@ export function set_value(element, value) {
var attributes = (element.__attributes ??= {}); var attributes = (element.__attributes ??= {});
if ( if (
attributes.value === (attributes.value = value) || attributes.value === (attributes.value = value) ||
// @ts-expect-error // @ts-expect-error
// `progress` elements always need their value set when its `0` // `progress` elements always need their value set when its `0`
(element.value === value && (value !== 0 || element.nodeName !== 'PROGRESS')) (element.value === value && (value !== 0 || element.nodeName !== 'PROGRESS'))
) )

Loading…
Cancel
Save