From 8d1e699c75cecf2712654f938b4acda1da427c46 Mon Sep 17 00:00:00 2001 From: APB9785 <74077809+APB9785@users.noreply.github.com> Date: Tue, 10 Dec 2024 15:11:21 -0600 Subject: [PATCH 1/2] Prevent error when closing meta tags modal --- lib/beacon/live_admin/live/meta_tags_component.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"> From 25543f32a471dabda8821f65dd371ba1d7751756 Mon Sep 17 00:00:00 2001 From: APB9785 <74077809+APB9785@users.noreply.github.com> Date: Tue, 10 Dec 2024 15:12:56 -0600 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) 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