fix: Scroll does not reset when navigating shared docs on mobile (#7037)

closes #6968
This commit is contained in:
Tom Moor
2024-06-14 19:36:36 -04:00
committed by GitHub
parent f35676f347
commit f8a9c18650
5 changed files with 61 additions and 32 deletions

View File

@@ -20,7 +20,7 @@ import env from "~/env";
import { initI18n } from "~/utils/i18n";
import Desktop from "./components/DesktopEventHandler";
import LazyPolyfill from "./components/LazyPolyfills";
import MobileScrollWrapper from "./components/MobileScrollWrapper";
import PageScroll from "./components/PageScroll";
import Routes from "./routes";
import Logger from "./utils/Logger";
import history from "./utils/history";
@@ -61,7 +61,7 @@ if (element) {
<LazyPolyfill>
<LazyMotion features={loadFeatures}>
<Router history={history}>
<MobileScrollWrapper>
<PageScroll>
<PageTheme />
<ScrollToTop>
<Routes />
@@ -69,7 +69,7 @@ if (element) {
<Toasts />
<Dialogs />
<Desktop />
</MobileScrollWrapper>
</PageScroll>
</Router>
</LazyMotion>
</LazyPolyfill>