From 1b4e5014aeeb227f5ee5da4190e179e42c5950c1 Mon Sep 17 00:00:00 2001 From: JUNO_OKYO <5250117+J2TEAM@users.noreply.github.com> Date: Mon, 17 Aug 2020 21:08:05 +0700 Subject: [PATCH] Add "autofocus" and "required" attributes to the email field (#9790) * Add autofocus * Add required --- app/views/devise/passwords/new.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/devise/passwords/new.html.erb b/app/views/devise/passwords/new.html.erb index c75aa5faa..ba7fb1b2a 100644 --- a/app/views/devise/passwords/new.html.erb +++ b/app/views/devise/passwords/new.html.erb @@ -6,7 +6,7 @@
<%= f.label :email, class: "crayons-field__label" %> - <%= f.email_field :email, class: "crayons-textfield", placeholder: "you@email.com" %> + <%= f.email_field :email, class: "crayons-textfield", placeholder: "you@email.com", autofocus: true, required: true %>