Skip to content

Commit

Permalink
fix: ensure value is correctly set to zero on the progress element
Browse files Browse the repository at this point in the history
  • Loading branch information
trueadm committed Oct 25, 2024
1 parent ddc7053 commit 514b6cf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function set_value(element, value) {
var attributes = (element.__attributes ??= {});
if (
attributes.value === (attributes.value = value) ||
// @ts-expect-error
// @ts-expect-error
// `progress` elements always need their value set when its `0`
(element.value === value && (value !== 0 || element.nodeName !== 'PROGRESS'))
)
Expand Down

0 comments on commit 514b6cf

Please sign in to comment.