Any press of esc should close the dialog
This commit is contained in:
@@ -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 %>
|
||||
|
||||
Reference in New Issue
Block a user