Avoid loss of focus on .suspect-email closure

This commit is contained in:
Corinne Durrmeyer 2024-09-19 11:31:06 +02:00
parent 3de79e99e0
commit c88096859a
No known key found for this signature in database
GPG key ID: DDC049DDA35585B6
5 changed files with 16 additions and 6 deletions

View file

@ -18,7 +18,7 @@
.fr-fieldset__element= render Dsfr::InputComponent.new(form: f, attribute: :email, input_type: :email_field, opts: { autocomplete: 'email', autofocus: true })
.fr-fieldset__element
= render Dsfr::InputComponent.new(form: f, attribute: :password, input_type: :password_field, opts: { autocomplete: 'current-password' })
= render Dsfr::InputComponent.new(form: f, attribute: :password, input_type: :password_field, opts: { autocomplete: 'current-password', 'data-email-input-target': 'next' })
%p= link_to t('views.users.sessions.new.reset_password'), new_user_password_path, class: "fr-link"