Describe the bug
This doesn't work:
{#each $items as item, index}
<input bind:value={item.text}>
{/each}
To Reproduce
https://svelte.dev/repl/358a3620fd6b4f159a90268a6b2035a4?version=3.9.1
Expected behavior
Editing the text input should update the store
Severity
Seems bad
Additional context
As a workaround, this works:
<input bind:value={$items[index].text}>
Might help track down how to correct it.
@Rich-Harris , it still breaks with use directive. instead ofbind:valuein the example if you use use:setValue , anything updated in the function is not reflected. Could you please help?
Most helpful comment
As a workaround, this works:
Might help track down how to correct it.