Skip to content

Using spread props with range input breaks reactivity #16535

@mrsproutt

Description

@mrsproutt

Describe the bug

Using spread props breaks the reactivity of the step attribute. This may be a part of a larger issue, although I could not find a duplicate issue that matches. You can fix it by wrapping the input in {#key step}.

Reproduction

https://svelte.dev/playground/hello-world?version=5.37.1#H4sIAAAAAAAACn2PwWrDMBBEf2VZerBBOE6Pwjbk1g_oLepBjTdFoKyFd500CP17EW16Kr0-3swwGdlfCC2-UIwL3JY1ztDQHJTmFg2eQyRBe8yo91S9CtA8UoeUOrlS1MrevdBf_LSwEqugxUFOa0g6OY6kIEoJRngS9UqNQ893h61jIX0NF1o2bZoWxukh7nsD-77v_1F-Sgw8f3vD7nfR8RA4bQr1yehw9fxBDiHXaIHcdV0uBXYTGlT6VLS6blTeDKoP8RZ4Rnv2Uah8Acv4cSY1AQAA

Logs

System Info

Binaries:
  Node: 22.13.0 - C:\Program Files\nodejs\node.EXE
  pnpm: 10.13.1 - ~\AppData\Local\pnpm\pnpm.CMD
Browsers:
  Chrome: 138.0.7204.158
npmPackages:
  svelte: ^5.36.13 => 5.36.16

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions