From 71db585b3e12f1d17d61fd9a587f716362632995 Mon Sep 17 00:00:00 2001 From: Michal Landsman Date: Fri, 27 Mar 2026 10:19:04 +0100 Subject: [PATCH 1/2] fix: Add tooltip controller to reactions trigger button --- app/views/reactions/_reactions.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/reactions/_reactions.html.erb b/app/views/reactions/_reactions.html.erb index 14237799a1..28e3461ea7 100644 --- a/app/views/reactions/_reactions.html.erb +++ b/app/views/reactions/_reactions.html.erb @@ -7,7 +7,7 @@ <%= turbo_frame_tag reactable, :new_reaction do %> <%= link_to new_polymorphic_path([ *reaction_path_prefix_for(reactable), :reaction ]), role: "button", class: "reactions__trigger btn btn--circle", action: "soft-keyboard#open", - data: { turbo_frame: dom_id(reactable, :new_reaction), action: "dialog#close" } do %> + data: { controller: "tooltip", turbo_frame: dom_id(reactable, :new_reaction), action: "dialog#close" } do %> <%= image_tag "boost-color.svg", aria: { hidden: true } %> Add your own reaction <% end %> From 5fa7b8afb3d62eed52c3ca4b63894b1153a24767 Mon Sep 17 00:00:00 2001 From: Michal Landsman Date: Fri, 27 Mar 2026 13:49:15 +0100 Subject: [PATCH 2/2] review --- app/views/reactions/_reactions.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/reactions/_reactions.html.erb b/app/views/reactions/_reactions.html.erb index 28e3461ea7..f990db4eb9 100644 --- a/app/views/reactions/_reactions.html.erb +++ b/app/views/reactions/_reactions.html.erb @@ -6,8 +6,8 @@ <%= turbo_frame_tag reactable, :new_reaction do %> <%= link_to new_polymorphic_path([ *reaction_path_prefix_for(reactable), :reaction ]), role: "button", - class: "reactions__trigger btn btn--circle", action: "soft-keyboard#open", - data: { controller: "tooltip", turbo_frame: dom_id(reactable, :new_reaction), action: "dialog#close" } do %> + class: "reactions__trigger btn btn--circle", + data: { controller: "tooltip soft-keyboard", turbo_frame: dom_id(reactable, :new_reaction), action: "dialog#close soft-keyboard#open" } do %> <%= image_tag "boost-color.svg", aria: { hidden: true } %> Add your own reaction <% end %>