From b5c9f7affddd6acd70d5ec9a4492b30306402a00 Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Mon, 19 Aug 2024 17:05:09 -0500 Subject: [PATCH] Don't autofocus or you end up anchored to the bottom of the page --- app/views/comments/_new.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/comments/_new.html.erb b/app/views/comments/_new.html.erb index 9e4b19819..19a15eefd 100644 --- a/app/views/comments/_new.html.erb +++ b/app/views/comments/_new.html.erb @@ -7,7 +7,7 @@
<%= form_with model: [@splat, @splat.comments.build], class: "flex flex-column gap full-width" do | form | %> - <%= form.text_area :body, class: "input full-width", required: true, placeholder: "Type your comment…", rows: 4, autofocus: true %> + <%= form.text_area :body, class: "input full-width", required: true, placeholder: "Type your comment…", rows: 4 %> <%= form.button class: "btn btn--reversed center" do %> <%= image_tag "check.svg", aria: { hidden: "true" }, size: 24%>