Stop Paystack pre-modal flash on customer checkout.
Deploy Ladill Mini / deploy (push) Successful in 1m39s
Deploy Ladill Mini / deploy (push) Successful in 1m39s
Use the shared Inline sheet, hold busy until payment UI opens, and avoid locking page scroll during the handoff.
This commit is contained in:
+5
-1
@@ -323,7 +323,11 @@ Alpine.data('miniPaymentLanding', (config = {}) => ({
|
||||
: 'Network error. Please try again.';
|
||||
} finally {
|
||||
clearTimeout(timer);
|
||||
this.loading = false;
|
||||
// Keep loading while the sheet is open — ladill-pay-opened / cancel / error clear it.
|
||||
// Clearing here caused a form flash before Paystack's modal painted.
|
||||
if (!this.showSheet) {
|
||||
this.loading = false;
|
||||
}
|
||||
}
|
||||
},
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user