mirror of
https://github.com/skadimoolam/go-vue-todos.git
synced 2026-05-16 14:16:17 -06:00
Autofocus task input field
This commit is contained in:
parent
05395ef97a
commit
5659440498
1 changed files with 1 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue