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.

onWheel={(e) => e.currentTarget.blur()}

Steven Teyb60afbe4008b
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/commissions/create-clawback-sheet.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/commissions/create-clawback-sheet.tsx
index e066baae74..49b5cd22aa 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/commissions/create-clawback-sheet.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/commissions/create-clawback-sheet.tsx
@@ -138,6 +138,7 @@ function CreateClawbackSheetContent(
<input
id="amount"
type="number"
+ onWheel={(e) => e.currentTarget.blur()}
min="0"
step="0.01"
className="block w-full rounded-md border-neutral-300 pl-6 pr-12 text-neutral-900 placeholder-neutral-400 focus:border-neutral-500 focus:outline-none focus:ring-neutral-500 sm:text-sm"
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/commissions/create-commission-sheet.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/commissions/create-commission-sheet.tsx
index 5e74bf79ba..bdc465ccd4 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/commissions/create-commission-sheet.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/commissions/create-commission-sheet.tsx
@@ -341,6 +341,7 @@ function CreateCommissionSheetContent(props: CreateCommissionSheetProps) {
<input
{...field}
type="number"
+ onWheel={(e) => e.currentTarget.blur()}
className={cn(
"block w-full rounded-md border-neutral-300 pl-6 pr-12 text-neutral-900 placeholder-neutral-400 focus:border-neutral-500 focus:outline-none focus:ring-neutral-500 sm:text-sm",
errors.amount &&
@@ -569,6 +570,7 @@ function CreateCommissionSheetContent(props: CreateCommissionSheetProps) {
<input
{...field}
type="number"
+ onWheel={(e) => e.currentTarget.blur()}
className={cn(
"block w-full rounded-md border-neutral-300 pl-6 pr-12 text-neutral-900 placeholder-neutral-400 focus:border-neutral-500 focus:outline-none focus:ring-neutral-500 sm:text-sm",
errors.saleAmount &&
diff --git a/apps/web/ui/shared/amount-input.tsx b/apps/web/ui/shared/amount-input.tsx
index 1dc010436f..3f98da6ae0 100644
--- a/apps/web/ui/shared/amount-input.tsx
+++ b/apps/web/ui/shared/amount-input.tsx
@@ -51,6 +51,7 @@ export const AmountInput = forwardRef<HTMLInputElement, AmountInputProps>(
ref={ref}
id={inputId}
type="number"
+ onWheel={(e) => e.currentTarget.blur()}
className={cn(
"block w-full rounded-md border-neutral-300 text-neutral-900 placeholder-neutral-400 focus:border-neutral-500 focus:outline-none focus:ring-neutral-500 sm:text-sm",
displayPrefix && "pl-6",