Skip to content

Commit

Permalink
Fix animate example (sveltejs#3543)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattstobbs authored and Conduitry committed Sep 10, 2019
1 parent e8ad401 commit c250793
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion site/content/examples/10-animations/00-animate/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,11 @@
</style>

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

<div class='left'>
<h2>todo</h2>
Expand Down

0 comments on commit c250793

Please sign in to comment.