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 34a9c856fbd0..6b289d23ec56 100644 --- a/src/pages/iou/request/step/IOURequestStepConfirmation.tsx +++ b/src/pages/iou/request/step/IOURequestStepConfirmation.tsx @@ -885,6 +885,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()} /> )}