Describe the bug
Name collision between expression name and property name in destructed object disables bind to work on that property
{#each a as { a }}
<input bind:value={a} />
{/each}
To Reproduce
https://svelte.dev/repl/d4fe2df9f4474da985dd2c6afa6876f3?version=3.21.0
Expected behavior
Property inside an object should change when input changed
Information about your Svelte project:
Severity
Annoying. Of course that applieable in very small cases but i think it should work
Workaround
Renaming the property name fix problem
{#each a as { a: b }}
<input bind:value={b} />
{/each}
Would work
Describe the bug
Name collision between expression name and property name in destructed object disables bind to work on that property
To Reproduce
https://svelte.dev/repl/d4fe2df9f4474da985dd2c6afa6876f3?version=3.21.0
Expected behavior
Property inside an object should change when input changed
Information about your Svelte project:
Severity
Annoying. Of course that applieable in very small cases but i think it should work
Workaround
Renaming the property name fix problem
Would work