fix: update texts on edit inline
This commit is contained in:
@@ -25,8 +25,8 @@
|
|||||||
<Button icon={Plus} ariaLabel="Add text" onclick={addText} />
|
<Button icon={Plus} ariaLabel="Add text" onclick={addText} />
|
||||||
</InputGroup>
|
</InputGroup>
|
||||||
<ul class="texts-list">
|
<ul class="texts-list">
|
||||||
{#each textsState.texts as { text, id } (id)}
|
{#each textsState.texts as { id }, idx (id)}
|
||||||
<TextInlineEdit {id} {text} ondelete={() => deleteText(id)} />
|
<TextInlineEdit {id} bind:text={textsState.texts[idx].text} ondelete={() => deleteText(id)} />
|
||||||
{/each}
|
{/each}
|
||||||
</ul>
|
</ul>
|
||||||
</Card>
|
</Card>
|
||||||
|
|||||||
Reference in New Issue
Block a user