Skip to content

Commit c250793

Browse files
mattstobbsConduitry
mattstobbs
authored andcommitted
Fix animate example (#3543)
1 parent e8ad401 commit c250793

File tree

1 file changed

+5
-1
lines changed
  • site/content/examples/10-animations/00-animate

1 file changed

+5
-1
lines changed

site/content/examples/10-animations/00-animate/App.svelte

+5-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,11 @@
109109
</style>
110110

111111
<div class='board'>
112-
<input class="new-todo" placeholder="what needs to be done?" on:keydown="{event => event.which === 13 && add(this)}">
112+
<input
113+
class="new-todo"
114+
placeholder="what needs to be done?"
115+
on:keydown="{event => event.which === 13 && add(event.target)}"
116+
>
113117

114118
<div class='left'>
115119
<h2>todo</h2>

0 commit comments

Comments
 (0)