Skip to content

Using Spread Operator Breaks defaultValue on Reset #14634

@thomascarman

Description

@thomascarman

Describe the bug

When using defaultValue in a form input with the reset button, the spread syntax with props on the input element causes it to break. Clicking the reset button does not set the value of the input to defaultValue. I haven't been able to test this locally on my machine yet, but noticed this issue while experimenting in a playground REPL. Advent of Svelte - Day 4

Reproduction

REPL: https://svelte.dev/playground/870931329ce7453199346f48ce2ab70b?version=5.8.0

Logs

No response

System Info

N/A

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions