Skip to content

Fully autonomous AI Agents system capable of performing complex penetration testing tasks

fix(auth): suppress native email validation popup on the email-change form

Sergey Kozyrenko31b91c56bea5
diff --git a/frontend/src/features/authentication/email-change-form.tsx b/frontend/src/features/authentication/email-change-form.tsx
index c8603522..0a0e6fd0 100644
--- a/frontend/src/features/authentication/email-change-form.tsx
+++ b/frontend/src/features/authentication/email-change-form.tsx
@@ -71,8 +71,11 @@ export function EmailChangeForm({ onCancel, onSuccess }: EmailChangeFormProps) {
return (
<Form {...form}>
+ {/* noValidate: the type="email" field would otherwise fire the browser's native (locale-styled)
+ validation popup on submit, pre-empting our zod message. Validation runs through zod instead. */}
<form
className="flex flex-col gap-4"
+ noValidate
onSubmit={form.handleSubmit(handleSubmit)}
>
<FormField