Skip to content

Commit

Permalink
Fix modal close button. (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
houhoulis authored Jan 10, 2025
1 parent 3d0e155 commit afa2445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/lib/components/station_ui/html/modal.ex
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ defmodule StationUI.HTML.Modal do
</h2>
</div>
<.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" />
</.button>
</header>
Expand Down

0 comments on commit afa2445

Please sign in to comment.