Fix login or register not working when pressing enter

This commit is contained in:
kolaente 2021-01-26 20:25:39 +01:00
parent 63726ed59f
commit c041eab7a2
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B
2 changed files with 15 additions and 4 deletions

View file

@ -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>

View file

@ -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>