fix: opt Next.js out of smooth scroll for route transitions
Adds data-scroll-behavior="smooth" to <html> 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.
This commit is contained in:
+1
-1
@@ -14,7 +14,7 @@ export const metadata: Metadata = {
|
||||
*/
|
||||
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
<html lang="en">
|
||||
<html lang="en" data-scroll-behavior="smooth">
|
||||
<body className={`${fraunces.variable} ${publicSans.variable} pb-footer md:pb-footer-wide`}>
|
||||
{children}
|
||||
<Footer />
|
||||
|
||||
Reference in New Issue
Block a user