Merge pull request #410 from kevinashworth/patch-1

Prevent default on checkbox
This commit is contained in:
Mark Nadal 2017-08-30 15:40:48 -07:00 committed by GitHub
commit f239d78772

View File

@ -68,7 +68,7 @@
<h3>Active</h3>
<div v-for="active in activeTodos">
<label><input type="checkbox" @click="completeTodo(active.key)"> {{ active.todo.description }}</label>
<label><input type="checkbox" @click.prevent="completeTodo(active.key)"> {{ active.todo.description }}</label>
</div>
<h5 v-show="completedTodos.length > 0" class="completed-header">Completed</h5>
@ -160,4 +160,4 @@ new Vue({
</script>
</html>
</html>