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"