Skip to content

Commit

Permalink
Merge pull request #127 from bluzky/fix/modal-click-away-not-hide
Browse files Browse the repository at this point in the history
Fix modal click away not hide
  • Loading branch information
bluzky authored Jan 10, 2025
2 parents 2364f9f + 8847d60 commit f9d8e5d
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 f9d8e5d

Please sign in to comment.