Skip to content

select with binded store value is broken in 5.33.6 #16026

Closed
@ivenuss

Description

@ivenuss

Describe the bug

Bindend select value that is store no longer works after this fix: #16017 meaning when I upgrade to version 5.33.6.

It will result in error that the $store is not defined.

Reproduction

Just create a store and bind it to the select value:

<script>
	import { writable } from "svelte/store";
	
	const fruit = writable('orange')
</script>

<select bind:value={$fruit}>
	<option value="apple">Apple</option>
	<option value="orange">Orange</option>
</select>

Will result into:

ReferenceError: $fruit is not defined

Reproduction link: https://www.sveltelab.dev/wde9u3z1507ibh8

System Info

"@sveltejs/kit": "^2.21.1",
"svelte": "^5.33.6"

Severity

blocking an upgrade

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions