diff --git a/sources/lib/components/station_ui/html/modal.ex b/sources/lib/components/station_ui/html/modal.ex index c94a5d4..7f325ec 100644 --- a/sources/lib/components/station_ui/html/modal.ex +++ b/sources/lib/components/station_ui/html/modal.ex @@ -67,7 +67,7 @@ defmodule StationUI.HTML.Modal do - <.button type="button" class="sui-secondary w-[42px] h-[42px] rounded-full" aria-label="Close" phx-click={@on_cancel}> + <.button type="button" class="sui-secondary w-[42px] h-[42px] rounded-full" aria-label="Close" phx-click={hide_modal(@on_cancel, @id)}> <.icon name="hero-x-mark" class="h-6 w-6 shrink-0" />