diff --git a/CHANGELOG.md b/CHANGELOG.md index 2cab62dd..9990d8b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## Unreleased +### Fixes + - Fix "new meta tag" modal close event being sent to wrong target + ## 0.3.0 (2024-12-05) ### Enhancements diff --git a/lib/beacon/live_admin/live/meta_tags_component.ex b/lib/beacon/live_admin/live/meta_tags_component.ex index 38399354..fd00836c 100644 --- a/lib/beacon/live_admin/live/meta_tags_component.ex +++ b/lib/beacon/live_admin/live/meta_tags_component.ex @@ -151,7 +151,7 @@ defmodule Beacon.LiveAdmin.MetaTagsComponent do - <.modal :if={@new_attribute_modal_visible?} id="new-attribute-modal" show={true} on_cancel={JS.push("hide-new-attribute-modal")}> + <.modal :if={@new_attribute_modal_visible?} id="new-attribute-modal" show={true} on_cancel={JS.push("hide-new-attribute-modal", target: @myself)}> <.header>New meta tag attribute <.simple_form :let={f} for={%{}} as={:attribute} phx-target={@myself} phx-submit="save-new-attribute">