diff --git a/components/carousel.js b/components/carousel.js index 8e5720e6e..4927bfed3 100644 --- a/components/carousel.js +++ b/components/carousel.js @@ -114,7 +114,10 @@ export function CarouselProvider ({ children }) { window.history.pushState(null, '', pathname) showModal((close, setOptions) => { - return + const closeAction = () => { + window.history.back() + } + return }, { fullScreen: true, overflow: