The personal finance app for everyone
Close new account modal when clicking outside of it (#576)
Thibaut Goriouxa1b25f1c5bb7
diff --git a/app/views/shared/_modal.html.erb b/app/views/shared/_modal.html.erbindex 89d18242..511991e0 100644--- a/app/views/shared/_modal.html.erb+++ b/app/views/shared/_modal.html.erb@@ -1,6 +1,6 @@<%# locals: (content:) -%><%= turbo_frame_tag "modal" do %>- <dialog class="bg-white border border-alpha-black-25 rounded-2xl max-h-[556px] max-w-[580px] w-full shadow-xs h-full" data-controller="modal" data-action="click->modal#click_outside">+ <dialog class="bg-white border border-alpha-black-25 rounded-2xl max-h-[556px] max-w-[580px] w-full shadow-xs h-full" data-controller="modal" data-action="click->modal#clickOutside"><div class="flex flex-col h-full"><%= content %></div>