From d71f579fcaf83fe74ef1bfe3ef147b41e921f92a Mon Sep 17 00:00:00 2001 From: unrenamed Date: Sun, 24 Nov 2024 13:32:13 +0200 Subject: [PATCH 1/2] fix: prevent parent drawers from closing when canceling nested drawers Ensure the "Cancel" button in nested drawers stops event propagation to avoid unintentionally closing parent drawers. Addresses unintended event bubbling within Vaul's drawer components. Has the same effect on Radix dialog components, although does not affect the UI behavior. --- apps/web/ui/modals/accept-invite-modal.tsx | 3 ++- apps/web/ui/modals/add-bank-account-modal.tsx | 5 ++++- apps/web/ui/modals/deposit-funds-modal.tsx | 5 ++++- apps/web/ui/modals/link-builder/advanced-modal.tsx | 8 ++++++-- apps/web/ui/modals/link-builder/expiration-modal.tsx | 6 ++++-- apps/web/ui/modals/link-builder/og-modal.tsx | 6 ++++-- apps/web/ui/modals/link-builder/password-modal.tsx | 6 ++++-- apps/web/ui/modals/link-builder/targeting-modal.tsx | 6 ++++-- apps/web/ui/modals/link-builder/utm-modal.tsx | 3 ++- apps/web/ui/modals/link-qr-modal.tsx | 3 ++- 10 files changed, 36 insertions(+), 15 deletions(-) diff --git a/apps/web/ui/modals/accept-invite-modal.tsx b/apps/web/ui/modals/accept-invite-modal.tsx index 18be07adcd..aecb4fd6a7 100644 --- a/apps/web/ui/modals/accept-invite-modal.tsx +++ b/apps/web/ui/modals/accept-invite-modal.tsx @@ -89,7 +89,8 @@ function AcceptInviteModal({