It is both reacting and reactions
So stick with the simpler dom id scope
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<%= turbo_frame_tag comment, :reacting do %>
|
||||
<%= turbo_frame_tag comment, :reactions do %>
|
||||
<div class="reactions flex flex-wrap align-center gap full-width">
|
||||
<div class="flex-inline flex-wrap gap">
|
||||
<%= render partial: "cards/comments/reactions/reaction", collection: comment.reactions.ordered, locals: { comment: comment } %>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<%= form_with url: card_comment_reactions_path(@comment.card, @comment),
|
||||
class: "reaction reaction__form flex-inline postion--relative max-width align-center fill-white gap expanded",
|
||||
html: { aria: { label: "New reaction" } },
|
||||
data: { controller: "form", turbo_frame: dom_id(@comment, :reacting), action: "keydown.esc->form#cancel" } do |form| %>
|
||||
data: { controller: "form", turbo_frame: dom_id(@comment, :reactions), action: "keydown.esc->form#cancel" } do |form| %>
|
||||
<label class="reaction__form-label flex gap" style="--column-gap: 0.7ch;">
|
||||
<figure class="reaction__avatar margin-none flex-item-no-shrink">
|
||||
<%= avatar_tag Current.user %>
|
||||
|
||||
Reference in New Issue
Block a user