From 2b21b7bed4b5a82d6c89ca34e7f6f8443d62df7f Mon Sep 17 00:00:00 2001 From: Giancarlo Buomprisco Date: Fri, 13 Jun 2025 09:59:51 +0700 Subject: [PATCH] Enhance EmbeddedCheckoutPopup to prevent default behavior on escape key down (#278) - Added an onEscapeKeyDown handler to the EmbeddedCheckoutPopup component to prevent default actions when the escape key is pressed, improving user experience and accessibility. --- .../billing/stripe/src/components/stripe-embedded-checkout.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/billing/stripe/src/components/stripe-embedded-checkout.tsx b/packages/billing/stripe/src/components/stripe-embedded-checkout.tsx index e3e7860c1..19f828bfd 100644 --- a/packages/billing/stripe/src/components/stripe-embedded-checkout.tsx +++ b/packages/billing/stripe/src/components/stripe-embedded-checkout.tsx @@ -65,6 +65,7 @@ function EmbeddedCheckoutPopup({ className={className} onOpenAutoFocus={(e) => e.preventDefault()} onInteractOutside={(e) => e.preventDefault()} + onEscapeKeyDown={(e) => e.preventDefault()} > Checkout
{children}