From 22f9a5cefa6fe20952c5779bfea20f80389bf770 Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Fri, 24 Jan 2025 10:43:46 +0100 Subject: [PATCH] fix(landing-page): prevent scroll reset when closing mobile header and tiers modal --- apps/landing-page/app/routes/__root.tsx | 1 + apps/landing-page/app/routes/_layout/pricing.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/apps/landing-page/app/routes/__root.tsx b/apps/landing-page/app/routes/__root.tsx index 59896d19d..61becc3f2 100644 --- a/apps/landing-page/app/routes/__root.tsx +++ b/apps/landing-page/app/routes/__root.tsx @@ -56,6 +56,7 @@ function RootComponent() { const closeHeader = () => { navigate({ search: { isHeaderOpened: undefined }, + resetScroll: false, }); }; diff --git a/apps/landing-page/app/routes/_layout/pricing.tsx b/apps/landing-page/app/routes/_layout/pricing.tsx index f73263427..688908c3a 100644 --- a/apps/landing-page/app/routes/_layout/pricing.tsx +++ b/apps/landing-page/app/routes/_layout/pricing.tsx @@ -45,6 +45,7 @@ function RouteComponent() { const closeTiersDialog = () => { navigate({ search: { isTiersModalOpened: undefined }, + resetScroll: false, }); };