Skip to content

Commit

Permalink
Fix slide-over wrapper not being hidden
Browse files Browse the repository at this point in the history
When the slide over component is hidden without a route change, the
wrapper and overlay don't get hidden and block scrolling beneath it.
  • Loading branch information
dshoreman committed Oct 29, 2024
1 parent 8c5ae0d commit 9d58dc0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/petal_components/slide_over.ex
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ defmodule PetalComponents.SlideOver do
},
to: "#slide-over-content"
)
|> JS.hide(to: "#slide-over")

if close_slide_over_target do
JS.push(js, "close_slide_over", target: close_slide_over_target)
Expand Down

0 comments on commit 9d58dc0

Please sign in to comment.