Skip to content

Commit

Permalink
site: fix deferred-transitions example
Browse files Browse the repository at this point in the history
  • Loading branch information
Conduitry committed Apr 14, 2019
1 parent 3f97558 commit cad5bba
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@
function remove(todo) {
todos = todos.filter(t => t !== todo);
}
function handleKeydown(event) {
if (event.which === 13) {
addTodo(event.target);
}
}
</script>

<style>
Expand Down Expand Up @@ -114,7 +108,7 @@
</style>

<div class='board'>
<input class="new-todo" placeholder="what needs to be done?" on:enter={add}>
<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 cad5bba

Please sign in to comment.