From 7584c1734249869c46c47039af86415c4fd42c8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Dubigny?= Date: Wed, 24 Jan 2024 12:00:32 +0100 Subject: [PATCH] Remove user_email input autofocus on agent page This avoid automatic scroll on page load so the AgentConnect button is visible. --- app/views/agent_connect/agent/index.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/agent_connect/agent/index.html.haml b/app/views/agent_connect/agent/index.html.haml index 84a2a4091..87710b7b8 100644 --- a/app/views/agent_connect/agent/index.html.haml +++ b/app/views/agent_connect/agent/index.html.haml @@ -41,7 +41,7 @@ %p.fr-text--sm= t('utils.mandatory_champs') .fr-fieldset__element - = render Dsfr::InputComponent.new(form: f, attribute: :email, input_type: :email_field, opts: { autocomplete: 'email', autofocus: true }) do |c| + = render Dsfr::InputComponent.new(form: f, attribute: :email, input_type: :email_field, opts: { autocomplete: 'email' }) do |c| - c.with_label { t('.pro_email') } .fr-fieldset__element