Skip to content

Commit

Permalink
Fix modal click away not hide
Browse files Browse the repository at this point in the history
  • Loading branch information
bluzky committed Jan 10, 2025
1 parent 2364f9f commit 8847d60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/salad_ui/dialog.ex
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ defmodule SaladUI.Dialog do
>
<.focus_wrap
id={"#{@id}-wrap"}
phx-window-keydown={JS.exec("data-cancel", to: "##{@id}")}
phx-window-keydown={JS.exec("phx-hide-modal", to: "##{@id}")}
phx-key="escape"
phx-click-away={JS.exec("data-cancel", to: "##{@id}")}
phx-click-away={JS.exec("phx-hide-modal", to: "##{@id}")}
class="w-full sm:max-w-[425px]"
>
<div
Expand Down

0 comments on commit 8847d60

Please sign in to comment.