Fix login or register not working when pressing enter
This commit is contained in:
parent
63726ed59f
commit
c041eab7a2
2 changed files with 15 additions and 4 deletions
|
@ -19,6 +19,7 @@
|
||||||
type="text"
|
type="text"
|
||||||
autocomplete="username"
|
autocomplete="username"
|
||||||
v-focus
|
v-focus
|
||||||
|
@keyup.enter="submit"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -34,6 +35,7 @@
|
||||||
required
|
required
|
||||||
type="password"
|
type="password"
|
||||||
autocomplete="current-password"
|
autocomplete="current-password"
|
||||||
|
@keyup.enter="submit"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -48,6 +50,7 @@
|
||||||
required
|
required
|
||||||
type="text"
|
type="text"
|
||||||
v-focus
|
v-focus
|
||||||
|
@keyup.enter="submit"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -15,7 +15,9 @@
|
||||||
type="text"
|
type="text"
|
||||||
autocomplete="username"
|
autocomplete="username"
|
||||||
v-focus
|
v-focus
|
||||||
v-model="credentials.username"/>
|
v-model="credentials.username"
|
||||||
|
@keyup.enter="submit"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
|
@ -28,7 +30,9 @@
|
||||||
placeholder="e.g. frederic@vikunja.io"
|
placeholder="e.g. frederic@vikunja.io"
|
||||||
required
|
required
|
||||||
type="email"
|
type="email"
|
||||||
v-model="credentials.email"/>
|
v-model="credentials.email"
|
||||||
|
@keyup.enter="submit"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
|
@ -42,7 +46,9 @@
|
||||||
required
|
required
|
||||||
type="password"
|
type="password"
|
||||||
autocomplete="new-password"
|
autocomplete="new-password"
|
||||||
v-model="credentials.password"/>
|
v-model="credentials.password"
|
||||||
|
@keyup.enter="submit"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
|
@ -56,7 +62,9 @@
|
||||||
required
|
required
|
||||||
type="password"
|
type="password"
|
||||||
autocomplete="new-password"
|
autocomplete="new-password"
|
||||||
v-model="credentials.password2"/>
|
v-model="credentials.password2"
|
||||||
|
@keyup.enter="submit"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue