Skip to content

audio: muted property not updating without bind:muted #15286

@f1nzer

Description

@f1nzer

Describe the bug

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}

Reproduction

Svelte 5.20 playground

Svelte 4.2.19 playground

Logs

System Info

System:
    OS: macOS 15.2
    CPU: (8) arm64 Apple M1 Pro
    Memory: 241.31 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 23.3.0 - /opt/homebrew/bin/node
    npm: 10.9.0 - /opt/homebrew/bin/npm
    pnpm: 10.3.0 - ~/Library/pnpm/pnpm
    bun: 1.1.21 - ~/.bun/bin/bun
  Browsers:
    Safari: 18.2

Chrome Version 132.0.6834.160 (Official Build) (arm64)

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions