fix properties on email inputs

This commit is contained in:
2023-05-20 20:46:37 +10:00
parent e023964cb2
commit 0e7c86ac2b
6 changed files with 15 additions and 6 deletions

View File

@@ -157,7 +157,16 @@
:type="props.type"
class="input-control"
:disabled="disabled"
v-bind="{ id: id, autofocus: props.autofocus }"
v-bind="{
id: id,
autofocus: props.autofocus,
autocomplete:
props.type === 'email' ? 'email' : null,
spellcheck: props.type === 'email' ? false : null,
autocorrect: props.type === 'email' ? 'on' : null,
autocapitalize:
props.type === 'email' ? 'off' : null,
}"
v-model="value"
@focus="handleFocus"
@blur="handleBlur"

View File

@@ -8,7 +8,7 @@
Enter your email below to receive a password reset link.
</p>
<SMForm v-model="form" @submit="handleSubmit">
<SMInput control="email" />
<SMInput control="email" type="email" autofocus />
<SMButtonRow>
<template #left>
<div class="small">

View File

@@ -9,7 +9,7 @@
</p>
</template>
<template #body>
<SMInput control="email" autofocus> </SMInput>
<SMInput control="email" autofocus type="email"> </SMInput>
<SMInput control="password" type="password">
<router-link to="/forgot-password"
>Forgot password?</router-link

View File

@@ -11,7 +11,7 @@
</template>
<template #body>
<SMFormError v-model="form" />
<SMInput control="email" autofocus />
<SMInput control="email" autofocus type="email" />
<SMInput control="password" type="password" />
<SMInput control="display_name" label="Display Name" />
</template>

View File

@@ -11,7 +11,7 @@
</p>
</template>
<template #body>
<SMInput control="email" />
<SMInput control="email" type="email" />
</template>
<template #footer>
<SMButtonRow>

View File

@@ -23,7 +23,7 @@
<SMColumn><SMInput control="last_name" /></SMColumn>
</SMRow>
<SMRow>
<SMColumn><SMInput control="email" /></SMColumn>
<SMColumn><SMInput control="email" type="email" /></SMColumn>
<SMColumn
><SMInput control="phone"
><template #help