Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/components/ParticipantPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -51,6 +54,7 @@ function ParticipantPicker({
onFinish,
isVisible = true,
onClose,
onBackdropPress,
}: ParticipantPickerProps) {
const {translate} = useLocalize();
const isSplitRequest = iouType === CONST.IOU.TYPE.SPLIT;
Expand Down Expand Up @@ -82,6 +86,7 @@ function ParticipantPicker({
type={CONST.MODAL.MODAL_TYPE.RIGHT_DOCKED}
isVisible={isVisible}
onClose={onClose}
onBackdropPress={onBackdropPress}
onModalHide={onClose}
enableEdgeToEdgeBottomSafeAreaPadding
>
Expand Down
3 changes: 3 additions & 0 deletions src/pages/iou/request/step/IOURequestStepConfirmation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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()}
/>
)}
</View>
Expand Down
Loading