From 41c7c6dc9e92b83a3d355674e1008c98418c7f6f Mon Sep 17 00:00:00 2001 From: "thelullabyy (via MelvinBot)" Date: Thu, 25 Jun 2026 05:43:19 +0000 Subject: [PATCH] Fix: close expense creation RHP when clicking outside open recipient list Co-authored-by: thelullabyy --- src/components/ParticipantPicker.tsx | 5 +++++ src/pages/iou/request/step/IOURequestStepConfirmation.tsx | 3 +++ 2 files changed, 8 insertions(+) diff --git a/src/components/ParticipantPicker.tsx b/src/components/ParticipantPicker.tsx index 91a864c405b5..df9c823542b8 100644 --- a/src/components/ParticipantPicker.tsx +++ b/src/components/ParticipantPicker.tsx @@ -38,6 +38,9 @@ type ParticipantPickerProps = { /** Callback fired when picker should close */ onClose?: () => void; + + /** Callback fired when the modal backdrop (the area outside the picker) is pressed. Falls back to onClose when omitted. */ + onBackdropPress?: () => void; }; function ParticipantPicker({ @@ -51,6 +54,7 @@ function ParticipantPicker({ onFinish, isVisible = true, onClose, + onBackdropPress, }: ParticipantPickerProps) { const {translate} = useLocalize(); const isSplitRequest = iouType === CONST.IOU.TYPE.SPLIT; @@ -82,6 +86,7 @@ function ParticipantPicker({ type={CONST.MODAL.MODAL_TYPE.RIGHT_DOCKED} isVisible={isVisible} onClose={onClose} + onBackdropPress={onBackdropPress} onModalHide={onClose} enableEdgeToEdgeBottomSafeAreaPadding > diff --git a/src/pages/iou/request/step/IOURequestStepConfirmation.tsx b/src/pages/iou/request/step/IOURequestStepConfirmation.tsx index 50d03f2ff167..66bfb7479d83 100644 --- a/src/pages/iou/request/step/IOURequestStepConfirmation.tsx +++ b/src/pages/iou/request/step/IOURequestStepConfirmation.tsx @@ -882,6 +882,9 @@ function IOURequestStepConfirmation({ onFinish={closeParticipantPicker} isVisible={isParticipantPickerVisible} onClose={closeParticipantPicker} + // Clicking the backdrop (outside the panel) should dismiss the whole expense creation RHP, + // matching standard RHP behavior, not just close the stacked participant picker. + onBackdropPress={() => Navigation.dismissModal()} /> )}