-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Open
Description
Describe the bug
If a <select> is bound to a state not equal to the initial value and its options are updated, the element will snap to display the initial value that does not match the state variable. This issue was introduced in 5.41.0, it does not occur in 5.40.2.
Reproduction
- Add option
- Select option that is not the initial value
- Add another option
<select>now displays the wrong option
With an $effect snapping to a different (still wrong) value
svelte.dev
- Add 2 options
- Select option that is not 0
- Add another option
<select>now displays the wrong option
Logs
System Info
Chromium 140.0.7339.185
Firefox 145.0
Safari 26.1 (21622.2.11.11.9)Severity
blocking an upgrade
brunnerh, CHFR-wide, mmaker-gh, sukeshpabolu and vladshcherbin
Metadata
Metadata
Assignees
Labels
No labels