Skip to content

Commit

Permalink
Fix slideover bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mplatts committed Oct 14, 2023
1 parent e500ecc commit bebde73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/petal_components/slide_over.ex
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ defmodule PetalComponents.SlideOver do
~H"""
<div
{@rest}
phx-mounted={!@hide && show_slide_over(@origin)}
phx-mounted={!@hide && show_slide_over()}
phx-remove={hide_slide_over(@origin, @close_slide_over_target)}
class="hidden pc-slide-over"
id="slide-over"
Expand Down Expand Up @@ -89,8 +89,8 @@ defmodule PetalComponents.SlideOver do
"""
end

def show_slide_over(js \\ %JS{}, id) do
js
def show_slide_over() do
%JS{}
|> JS.show(to: "#slide-over")
|> JS.show(
to: "#slide-over-overlay",
Expand Down

0 comments on commit bebde73

Please sign in to comment.