-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
audio: muted property not updating without bind:muted #15286
Comments
Hello, I think it's come from #13751 and theses lines : svelte/packages/svelte/src/compiler/phases/3-transform/client/visitors/RegularElement.js Lines 544 to 548 in 21dadfc
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. |
Just stumbled across this while fixing the |
I always use Firefox... |
Mmm...weird...just for the sake of honoring the comment i'm gonna fix it while keep assigning to the property but definitely worth exploring if it's dead code |
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: