From 0e7c86ac2b86f01007df1019d18f5fde10829703 Mon Sep 17 00:00:00 2001
From: James Collins
Date: Sat, 20 May 2023 20:46:37 +1000
Subject: [PATCH] fix properties on email inputs
---
resources/js/components/SMInput.vue | 11 ++++++++++-
resources/js/views/ForgotPassword.vue | 2 +-
resources/js/views/Login.vue | 2 +-
resources/js/views/Register.vue | 2 +-
resources/js/views/ResendEmailVerify.vue | 2 +-
resources/js/views/dashboard/UserEdit.vue | 2 +-
6 files changed, 15 insertions(+), 6 deletions(-)
diff --git a/resources/js/components/SMInput.vue b/resources/js/components/SMInput.vue
index 7e26f62..d5756cd 100644
--- a/resources/js/components/SMInput.vue
+++ b/resources/js/components/SMInput.vue
@@ -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"
diff --git a/resources/js/views/ForgotPassword.vue b/resources/js/views/ForgotPassword.vue
index 49546de..4867ba2 100644
--- a/resources/js/views/ForgotPassword.vue
+++ b/resources/js/views/ForgotPassword.vue
@@ -8,7 +8,7 @@
Enter your email below to receive a password reset link.
-
+
diff --git a/resources/js/views/Login.vue b/resources/js/views/Login.vue
index b9b4f49..3635e9d 100644
--- a/resources/js/views/Login.vue
+++ b/resources/js/views/Login.vue
@@ -9,7 +9,7 @@
-
+
Forgot password?
-
+
diff --git a/resources/js/views/ResendEmailVerify.vue b/resources/js/views/ResendEmailVerify.vue
index 6c86c06..abcb9db 100644
--- a/resources/js/views/ResendEmailVerify.vue
+++ b/resources/js/views/ResendEmailVerify.vue
@@ -11,7 +11,7 @@
-
+
diff --git a/resources/js/views/dashboard/UserEdit.vue b/resources/js/views/dashboard/UserEdit.vue
index 92ac0bc..99e52cd 100644
--- a/resources/js/views/dashboard/UserEdit.vue
+++ b/resources/js/views/dashboard/UserEdit.vue
@@ -23,7 +23,7 @@
-
+