Skip to content

Commit e9b0908

Browse files
authored
docs: add missing on:click to immutable example (#10079)
1 parent 3c6977a commit e9b0908

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

documentation/examples/21-miscellaneous/02-immutable-data/MutableTodo.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<!-- the text will flash red whenever
1515
the `todo` object changes -->
16-
<button bind:this={btn}>
16+
<button bind:this={btn} on:click>
1717
{todo.done ? '👍' : ''}
1818
{todo.text}
1919
</button>

0 commit comments

Comments
 (0)