From 8917f7ba863fe243f6dea08e662ab7e487eff451 Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Mon, 25 Aug 2025 10:32:04 -0500 Subject: [PATCH] Any press of `esc` should close the dialog --- app/views/bar/_bar.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/bar/_bar.html.erb b/app/views/bar/_bar.html.erb index 87c133be6..774f7f49e 100644 --- a/app/views/bar/_bar.html.erb +++ b/app/views/bar/_bar.html.erb @@ -42,7 +42,7 @@ data: { controller: "dialog", dialog_target: "dialog", - action: "keydown.esc->bar#reset:stop" } do %> + action: "keydown.esc@document->bar#reset:stop" } do %> <%= turbo_frame_tag "bar-content", data: { bar_target: "turboFrame" } %> <% end %> <% end %>