You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setting muted={muted} on <audio> in Svelte 5.20 does not update the property when muted changes, but bind:muted={muted} works as expected. But it worked in Svelte 4.
Expected behavior: clicking the button should toggle the muted property on the audio as it did in Svelte 4
Actual behavior: muted does not update unless using bind:muted={muted}
The code is added on the "init" state of the component, but since the variable is reactive, this should be done on the "update" state.
Strangely, if I delete these lines it seems to work fine...
Describe the bug
Setting
muted={muted}
on<audio>
in Svelte 5.20 does not update the property when muted changes, butbind:muted={muted}
works as expected. But it worked in Svelte 4.Expected behavior: clicking the button should toggle the muted property on the
audio
as it did in Svelte 4Actual behavior: muted does not update unless using bind:muted={muted}
Reproduction
Svelte 5.20 playground
Svelte 4.2.19 playground
Logs
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: