Skip to content
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

Using Spread Operator Breaks defaultValue on Reset #14634

Closed
thomascarman opened this issue Dec 9, 2024 · 0 comments · Fixed by #14640
Closed

Using Spread Operator Breaks defaultValue on Reset #14634

thomascarman opened this issue Dec 9, 2024 · 0 comments · Fixed by #14640
Labels

Comments

@thomascarman
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants