Skip to content

Commit

Permalink
Autofocus task input field
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljdennis committed Oct 16, 2016
1 parent 05395ef commit 5659440
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<h1>My Tasks</h1>

<div class="input-group">
<input type="text" class="form-control" placeholder="New Task" v-on:keyup.enter="createTask" v-model="newTask.name">
<input type="text" class="form-control" placeholder="New Task" v-on:keyup.enter="createTask" v-model="newTask.name" autofocus>
<span class="input-group-btn">
<button class="btn btn-primary" type="button" v-on:click="createTask">Create</button>
</span>
Expand Down

0 comments on commit 5659440

Please sign in to comment.