Fix: close dialog when removing background image

https://app.fizzy.do/5986089/cards/2990
This commit is contained in:
Jorge Manrubia
2025-11-18 15:54:08 +01:00
parent b335eab6de
commit 4d4a15a4d8
+1 -1
View File
@@ -41,7 +41,7 @@ module CardsHelper
end
def button_to_remove_card_image(card)
button_to(card_image_path(card), method: :delete, class: "btn", data: { controller: "tooltip" }) do
button_to(card_image_path(card), method: :delete, class: "btn", data: { controller: "tooltip", action: "dialog#close" }) do
icon_tag("trash") + tag.span("Remove background image", class: "for-screen-reader")
end
end