<%= f.text_area :body_markdown,
placeholder: "Add to the discussion",
onfocus: "handleFocus(event)",
onblur: "handleBlur(event)",
onkeyup: "handleKeyUp(event)",
onkeydown: "handleKeyDown(event)",
id: "text-area",
autofocus: @comment.persisted?,
required: true,
'aria-label': "Add a comment to the discussion" %>
<%# See https://github.com/thepracticaldev/dev.to/issues/7081 %>
<%= link_to((:back if sanitized_referer(request.referer)) || commentable&.path || @comment.path, "aria-label": "Cancel action") do %>
<% end %>
<%= f.submit "SUBMIT", onclick: "validateField(event)", class: "comment-action-button", id: "submit-button" %>
<% end %>
<% if @comment.persisted? %>
<% end %>