]> cat aescling's git repositories - mastodon.git/commitdiff
Disables autocorrect/autocapitalize on remote username field. (#7549)
authorAsh Furrow <ash@ashfurrow.com>
Sat, 19 May 2018 17:36:23 +0000 (13:36 -0400)
committerEugen Rochko <eugen@zeonfederated.com>
Sat, 19 May 2018 17:36:23 +0000 (19:36 +0200)
app/views/remote_follow/new.html.haml

index fa48e5e627b4a70abd034c1fda34a5013a1920e3..fc5c4da20bd9a57bfaa18a981303382403f7cccd 100644 (file)
@@ -7,7 +7,7 @@
   = simple_form_for @remote_follow, as: :remote_follow, url: account_remote_follow_path(@account) do |f|
     = render 'shared/error_messages', object: @remote_follow
 
-    = f.input :acct, placeholder: t('remote_follow.acct')
+    = f.input :acct, placeholder: t('remote_follow.acct'), input_html: { autocapitalize: 'none', autocorrect: 'off' }
 
     .actions
       = f.button :button, t('remote_follow.proceed'), type: :submit