mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-09-06 23:30:42 +02:00
Fix hydration error
This commit is contained in:
@@ -66,7 +66,11 @@ export function EmailLoginForm(props: EmailLoginFormProps) {
|
||||
const passwordFieldId = `form:${useId()}`;
|
||||
|
||||
return (
|
||||
<form className="w-full" onSubmit={handleFormSubmit}>
|
||||
<form
|
||||
className="w-full"
|
||||
onSubmit={handleFormSubmit}
|
||||
suppressHydrationWarning={true} // Hubspot adds data-* attributes which causes hydration errors
|
||||
>
|
||||
<label htmlFor={emailFieldId} className="sr-only">
|
||||
Email address
|
||||
</label>
|
||||
|
Reference in New Issue
Block a user