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.

prevent parent form submission

Kiran K7eb282782211
diff --git a/apps/web/ui/modals/add-customer-modal.tsx b/apps/web/ui/modals/add-customer-modal.tsx
index f98ef496f9..691e90f7cd 100644
--- a/apps/web/ui/modals/add-customer-modal.tsx
+++ b/apps/web/ui/modals/add-customer-modal.tsx
@@ -75,7 +75,12 @@ const AddCustomerModal = ({
</div>
<div className="bg-neutral-50">
- <form onSubmit={handleSubmit(onSubmit)}>
+ <form
+ onSubmit={(e) => {
+ e.stopPropagation();
+ return handleSubmit(onSubmit)(e);
+ }}
+ >
<div className="flex flex-col gap-4 px-4 py-6 text-left sm:px-6">
<div>
<label className="text-sm font-normal text-neutral-500">