From 3be1418cff2faade3a60bd787b7c0adfb2f82e8c Mon Sep 17 00:00:00 2001 From: aegroto Date: Fri, 22 Nov 2024 10:32:13 +0100 Subject: [PATCH] fix: navigation-based carousel close action --- components/carousel.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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: