Remove user_email input autofocus on agent page

This avoid automatic scroll on page load so the AgentConnect button is visible.
This commit is contained in:
Raphaël Dubigny 2024-01-24 12:00:32 +01:00 committed by GitHub
parent 6253188a77
commit 7584c17342
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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