Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Fix add payment method modal blocking click focus from OTP modals

Joshen Limf6d0b9bab3a6
diff --git a/studio/components/interfaces/Billing/AddNewPaymentMethodModal/AddPaymentMethodForm.tsx b/studio/components/interfaces/Billing/AddNewPaymentMethodModal/AddPaymentMethodForm.tsx
index 006eb1906c1..fa5c0ed9e9a 100644
--- a/studio/components/interfaces/Billing/AddNewPaymentMethodModal/AddPaymentMethodForm.tsx
+++ b/studio/components/interfaces/Billing/AddNewPaymentMethodModal/AddPaymentMethodForm.tsx
@@ -46,7 +46,11 @@ const AddPaymentMethodForm: FC<Props> = ({ returnUrl, onCancel }) => {
return (
<form onSubmit={handleSubmit}>
<Modal.Content>
- <PaymentElement />
+ <div
+ className={`transition ${isSaving ? 'opacity-75 pointer-events-none' : 'opacity-100'}`}
+ >
+ <PaymentElement />
+ </div>
</Modal.Content>
<Modal.Seperator />
<Modal.Content>