From a31cf4deec5abeaa0475cb72f3445385a01c4862 Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Fri, 22 May 2026 15:30:42 +0300 Subject: [PATCH] fix: opt Next.js out of smooth scroll for route transitions Adds data-scroll-behavior="smooth" to so Next disables the global scroll-behavior during programmatic route-change scrolls while keeping smooth behavior for user-driven anchor jumps. Silences the Next 15 warning. --- app/layout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/layout.tsx b/app/layout.tsx index 4ee2fdf..af12209 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -14,7 +14,7 @@ export const metadata: Metadata = { */ export default function RootLayout({ children }: { children: React.ReactNode }) { return ( - + {children}