-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Open
Description
Describe the bug
When using unshift to add elements to an array used in a keyed #each block, the index doesn't correctly update, breaking everything inside that depends on it (element id, input names, etc).
Reproduction
Working:
https://svelte.dev/playground/2c88b99bca074875bc50c2b9d0462545?version=5.43.11
Not working:
https://svelte.dev/playground/2c88b99bca074875bc50c2b9d0462545?version=5.43.12
Logs
System Info
Severity
blocking an upgrade
Metadata
Metadata
Assignees
Labels
No labels