Fix: close dialog when removing background image
https://app.fizzy.do/5986089/cards/2990
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user