Skip to content

Commit

Permalink
Autofocus the departure field
Browse files Browse the repository at this point in the history
  • Loading branch information
mimischi committed Feb 23, 2019
1 parent 29d5f23 commit fc89520
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/ConnectionForm.vue
Expand Up @@ -25,6 +25,7 @@ the-card(
v-flex(xs11)
station-search(
v-model="connection.from"
:autofocus=`true`,
direction="from"
label="Departure station"
prepend-icon="flight_takeoff"
Expand Down
5 changes: 5 additions & 0 deletions src/components/StationSearch.vue
@@ -1,6 +1,7 @@
<template lang="pug">
v-autocomplete(
v-model="model"
:autofocus="autofocus"
:items="items"
:label="label"
:loading="loading"
Expand Down Expand Up @@ -29,6 +30,10 @@ export default {
type: Object,
required: true
},
autofocus: {
type: Boolean,
default: false
},
label: {
type: String,
default: "Station name"
Expand Down

0 comments on commit fc89520

Please sign in to comment.