fix(qa): ISSUE-001 — fix Ant Design hydration mismatch on form inputs
Add suppressHydrationWarning to root <html> element in layout.tsx. Resolves React hydration mismatch warnings on Ant Design Input components (caretColor attribute mismatch between SSR and client). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -70,7 +70,7 @@ export default function RootLayout({
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
return (
|
||||
<html lang="zh-CN" className={fontVariables}>
|
||||
<html lang="zh-CN" className={fontVariables} suppressHydrationWarning>
|
||||
<body>
|
||||
<ConfigProvider button={{ autoInsertSpace: false }} theme={appTheme}>
|
||||
<AuthGuard>
|
||||
|
||||
Reference in New Issue
Block a user