Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Use the form's own checks instead of the browser's in the submit lead form

Rafife38f4fa4b38
diff --git a/apps/web/ui/submitted-leads/submit-lead-sheet.tsx b/apps/web/ui/submitted-leads/submit-lead-sheet.tsx
index 75d3bfb12f..551edfb02b 100644
--- a/apps/web/ui/submitted-leads/submit-lead-sheet.tsx
+++ b/apps/web/ui/submitted-leads/submit-lead-sheet.tsx
@@ -106,6 +106,8 @@ export function SubmitLeadSheet({
<FormProvider {...form}>
<form
onSubmit={handleSubmit(onSubmit)}
+ // The fields have their own checks, so all errors show in the same style
+ noValidate
className="flex h-full flex-col"
>
<div className="sticky top-0 z-10 border-b border-neutral-200 bg-neutral-50">