From 40abfedb32b6f4a38aa97797dbd9bae4c9eee072 Mon Sep 17 00:00:00 2001 From: Thiago Youssef <43591948+thiagoyoussef@users.noreply.github.com> Date: Tue, 5 Nov 2024 05:03:59 -0300 Subject: [PATCH] feature: action dynamic backdrop option (#3379) * feature: action dynamic backdrop option * style: dynamic_backdrop reader * code review changes * rename to `close_modal_on_backdrop_click` --- app/components/avo/modal_component.html.erb | 4 +-- app/components/avo/modal_component.rb | 1 + .../js/controllers/modal_controller.js | 8 ++++- app/views/avo/actions/show.html.erb | 2 +- lib/avo/base_action.rb | 1 + spec/dummy/app/avo/actions/export_csv.rb | 1 + spec/system/avo/actions_spec.rb | 29 +++++++++++++++++++ 7 files changed, 42 insertions(+), 4 deletions(-) diff --git a/app/components/avo/modal_component.html.erb b/app/components/avo/modal_component.html.erb index 883937dedb..a074beb9c5 100644 --- a/app/components/avo/modal_component.html.erb +++ b/app/components/avo/modal_component.html.erb @@ -1,8 +1,9 @@