Closed swizzley closed 2 years ago
Hi @swizzley. In Svelte you can only bind to props that components expose. bind:itemsSelected
assumes MultiSelect
has an internal variable called itemsSelected
which it does not.
I assume this does what you want?
<script>
const items = [`Svelte`, `React`, `Vue`, `Angular`, `Vanilla`]
let selected = [`Svelte`]
</script>
<MultiSelect
options={items}
bind:selected
/>
Closing this as resolved. Ping back if issues remain.
Console warning probably a sub-issue causing and breaking the entire component when Selected is a var
Above error is present when selected is replaced with variable of same value, new to svelte please forgive my ignorance