Skip to content

Commit

Permalink
Prevent error when closing meta tags modal (#311)
Browse files Browse the repository at this point in the history
* Prevent error when closing meta tags modal

* changelog
  • Loading branch information
APB9785 authored and leandrocp committed Dec 12, 2024
1 parent 93122c1 commit 101973b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## Unreleased

### Fixes
- Fix "new meta tag" modal close event being sent to wrong target

## 0.3.0 (2024-12-05)

### Enhancements
Expand Down
2 changes: 1 addition & 1 deletion lib/beacon/live_admin/live/meta_tags_component.ex
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ defmodule Beacon.LiveAdmin.MetaTagsComponent do
</.form>
</div>
<.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</.header>
<.simple_form :let={f} for={%{}} as={:attribute} phx-target={@myself} phx-submit="save-new-attribute">
Expand Down

0 comments on commit 101973b

Please sign in to comment.