From 7d9cd145de240e7a9c0bb140831c9ddafd205990 Mon Sep 17 00:00:00 2001 From: Paul Robert Lloyd Date: Tue, 11 Jan 2022 14:17:49 +0000 Subject: [PATCH] Add spellcheck false to email inputs --- app/views/devise/confirmations/new.html.erb | 1 + app/views/devise/passwords/new.html.erb | 3 ++- app/views/devise/sessions/new.html.erb | 3 ++- app/views/devise/unlocks/new.html.erb | 3 ++- app/views/users/edit.html.erb | 3 ++- app/views/users/new.html.erb | 1 + 6 files changed, 10 insertions(+), 4 deletions(-) diff --git a/app/views/devise/confirmations/new.html.erb b/app/views/devise/confirmations/new.html.erb index 8fec1b4ff..ac0537c68 100644 --- a/app/views/devise/confirmations/new.html.erb +++ b/app/views/devise/confirmations/new.html.erb @@ -6,6 +6,7 @@ <%= f.govuk_email_field :email, label: { text: "Email address" }, autocomplete: "email", + spellcheck: "false", value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email) %> diff --git a/app/views/devise/passwords/new.html.erb b/app/views/devise/passwords/new.html.erb index 6f5055ae0..bd0ae816b 100644 --- a/app/views/devise/passwords/new.html.erb +++ b/app/views/devise/passwords/new.html.erb @@ -21,7 +21,8 @@ <%= f.govuk_email_field :email, label: { text: "Email address" }, - autocomplete: "email" + autocomplete: "email", + spellcheck: "false" %> <%= f.govuk_submit "Send email" %> diff --git a/app/views/devise/sessions/new.html.erb b/app/views/devise/sessions/new.html.erb index edfe427a0..fab47b4a1 100644 --- a/app/views/devise/sessions/new.html.erb +++ b/app/views/devise/sessions/new.html.erb @@ -12,7 +12,8 @@ <%= f.govuk_email_field :email, label: { text: "Email address" }, - autocomplete: "email" + autocomplete: "email", + spellcheck: "false" %> <%= f.govuk_password_field :password, diff --git a/app/views/devise/unlocks/new.html.erb b/app/views/devise/unlocks/new.html.erb index 2454c692a..c20182b23 100644 --- a/app/views/devise/unlocks/new.html.erb +++ b/app/views/devise/unlocks/new.html.erb @@ -5,7 +5,8 @@ <%= f.govuk_email_field :email, label: { text: "Email address" }, - autocomplete: "email" + autocomplete: "email", + spellcheck: "false" %> <%= f.govuk_submit "Resend unlock instructions" %> diff --git a/app/views/users/edit.html.erb b/app/views/users/edit.html.erb index f355ba993..9d30a0fe8 100644 --- a/app/views/users/edit.html.erb +++ b/app/views/users/edit.html.erb @@ -22,7 +22,8 @@ <%= f.govuk_email_field :email, label: { text: "Email address" }, - autocomplete: "email" + autocomplete: "email", + spellcheck: "false" %> <%= f.govuk_submit "Save changes" %> diff --git a/app/views/users/new.html.erb b/app/views/users/new.html.erb index 3d48e68f6..3ce6c9e06 100644 --- a/app/views/users/new.html.erb +++ b/app/views/users/new.html.erb @@ -23,6 +23,7 @@ <%= f.govuk_email_field :email, label: { text: "Email address" }, autocomplete: "email", + spellcheck: "false", value: @resource.email %>