🚸 Pressing enter submits login form (#483)

This commit is contained in:
Alicia Sykes
2022-02-09 18:04:16 +00:00
parent 33855dca40
commit c4f1be2b76
2 changed files with 7 additions and 4 deletions

View File

@@ -14,6 +14,7 @@
:name="name"
:id="name"
:placeholder="placeholder"
@keyup.enter="onEnter ? onEnter() : () => {}"
class="input-field"
/>
<p
@@ -35,6 +36,7 @@ export default {
name: String, // Required unique ID value, for accessibility
placeholder: String, // Optional placeholder value
description: String, // Optional info paragraph
onEnter: Function,
type: {
default: 'text', // Input type, e.g. text, password, number
type: String,