The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Reduce scope of pointer events auto on body tag
Joshen Limf5e09a7820f4
diff --git a/studio/components/interfaces/Billing/AddNewPaymentMethodModal/AddPaymentMethodForm.tsx b/studio/components/interfaces/Billing/AddNewPaymentMethodModal/AddPaymentMethodForm.tsxindex fa5c0ed9e9a..444eb12257e 100644--- a/studio/components/interfaces/Billing/AddNewPaymentMethodModal/AddPaymentMethodForm.tsx+++ b/studio/components/interfaces/Billing/AddNewPaymentMethodModal/AddPaymentMethodForm.tsx@@ -29,6 +29,11 @@ const AddPaymentMethodForm: FC<Props> = ({ returnUrl, onCancel }) => {setIsSaving(true)+ if (document !== undefined) {+ // [Joshen] This is to ensure that any 3DS popup from Stripe remains clickable+ document.body.classList.add('!pointer-events-auto')+ }+const { error } = await stripe.confirmSetup({elements,confirmParams: { return_url: returnUrl },@@ -41,6 +46,10 @@ const AddPaymentMethodForm: FC<Props> = ({ returnUrl, onCancel }) => {message: error?.message ?? ' Failed to save card details',})}++ if (document !== undefined) {+ document.body.classList.remove('!pointer-events-auto')+ }}return (diff --git a/studio/styles/main.scss b/studio/styles/main.scssindex 084126ec8fd..bbbcf1484aa 100644--- a/studio/styles/main.scss+++ b/studio/styles/main.scss@@ -28,10 +28,6 @@ body,-webkit-font-smoothing: antialiased;@apply bg-bg-primary-light dark:bg-bg-primary-dark;@apply text-scale-1200;-- // [Joshen] pointer-events: none gets styled to the body whenever a modal opens- // Is this an intended radix behaviour? This is however, affecting Stripe's 3D popup- pointer-events: auto !important;}* {