]> cat aescling's git repositories - mastodon.git/commitdiff
Don't autofocus registration form (#10356)
authorkoyu <me@koyu.space>
Sun, 24 Mar 2019 04:00:02 +0000 (05:00 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 24 Mar 2019 04:00:02 +0000 (05:00 +0100)
app/views/about/_registration.html.haml

index 4823ff375d4ab33d6913d4420a39d2c770a32b1e..09cbe2e289414dec81d7b8fddcd6622000a48c25 100644 (file)
@@ -4,7 +4,7 @@
 
     .fields-group
       = f.simple_fields_for :account do |account_fields|
-        = account_fields.input :username, wrapper: :with_label, autofocus: true, label: false, required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.username'), :autocomplete => 'off', placeholder: t('simple_form.labels.defaults.username') }, append: "@#{site_hostname}", hint: false, disabled: closed_registrations?
+        = account_fields.input :username, wrapper: :with_label, label: false, required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.username'), :autocomplete => 'off', placeholder: t('simple_form.labels.defaults.username') }, append: "@#{site_hostname}", hint: false, disabled: closed_registrations?
 
       = f.input :email, placeholder: t('simple_form.labels.defaults.email'), required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.email'), :autocomplete => 'off' }, hint: false, disabled: closed_registrations?
       = f.input :password, placeholder: t('simple_form.labels.defaults.password'), required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.password'), :autocomplete => 'off' }, hint: false, disabled: closed_registrations?