You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The select element will not correctly display options[0] as being selected. This is likely due to an identity-check being used against a Proxy in Svelte internals.
To workaround this, wrap the options array in a $state rune. Using $state.frozen will not work.
I'm not sure if this is intended behaviour. If so, perhaps we should document this edge case with the workaround.
Describe the bug
Consider the following:
The select element will not correctly display
options[0]
as being selected. This is likely due to an identity-check being used against aProxy
in Svelte internals.To workaround this, wrap the
options
array in a$state
rune. Using$state.frozen
will not work.I'm not sure if this is intended behaviour. If so, perhaps we should document this edge case with the workaround.
Reproduction
https://svelte-5-preview.vercel.app/#H4sIAAAAAAAAE21Ou2rEMBD8lWWTIgET59EJ2ZB_SGe5UOQ9ItBJwlofF4z-PchSrkm6eezszI4n6yihmHb0-kwo8D1G7JC_YyHpQo4JO0xhW01RZDKrjTwqb4JPDCGyDT7BAJPyinemKwtQ-EFXhheFufsrv_4vv1V5Vl55RwyJHBmmBQa4T6yZHlrZ9Dw_Ki_72xRZT-HT-kVctNto2H_TeTya7kibr9tanRrMxVQsK4OWbd7YwFOZmWVfWf3Xl3_5WHEUjdjhOSz2ZGlBwetGec4_GI8Ytl8BAAA=
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: