Merge pull request #1624 from basecamp/plan-b+fix-dialog
Fix: can't click anywhere after removing background image from card
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