docs: fix example immutable missing on:click (#10107)

pull/10149/head
Fritz Lin 12 months ago committed by GitHub
parent bde282adba
commit c71ef10c54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -13,7 +13,7 @@
<!-- the text will flash red whenever <!-- the text will flash red whenever
the `todo` object changes --> the `todo` object changes -->
<button bind:this={btn}> <button bind:this={btn} on:click>
{todo.done ? '👍' : ''} {todo.done ? '👍' : ''}
{todo.text} {todo.text}
</button> </button>

Loading…
Cancel
Save