House seems to expect a placeholder value
Fixes that the placeholder would display `null` if you clear the content while editing a comment. See also: https://fizzy.37signals.com/buckets/693169850/bubbles/999008493#comment_994776744
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<div class="comment__content flex-inline flex-column full-width border border-radius">
|
||||
<%= form_with model: [@bubble.bucket, @bubble, @comment], class: "flex flex-column gap full-width",
|
||||
data: { controller: "form paste", action: "keydown.ctrl+enter->form#submit:prevent keydown.meta+enter->form#submit:prevent keydown.esc->form#cancel:stop paste->paste#pasteFiles" } do |form| %>
|
||||
<%= form.markdown_area :body, class: "input comment__input", required: true, autofocus: true %>
|
||||
<%= form.markdown_area :body, class: "input comment__input", required: true, autofocus: true, placeholder: new_comment_placeholder(@bubble) %>
|
||||
<div class="flex gap-half justify-start">
|
||||
<%= form.button class: "btn btn--reversed txt-small", type: :submit do %>
|
||||
<%= image_tag "check.svg", aria: { hidden: true }, size: 16 %>
|
||||
|
||||
Reference in New Issue
Block a user