Skip to content

Commit

Permalink
Merge pull request #42341 from bernhardoj/fix/42194-dont-disable-dele…
Browse files Browse the repository at this point in the history
…ted-parent-action-while-offline

Fix can't interact with deleted parent action after deleting it for a while
  • Loading branch information
Julesssss authored Jun 11, 2024
2 parents 65db650 + bd69493 commit 2282810
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/home/report/ReportActionItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ function ReportActionItem({
<PressableWithSecondaryInteraction
ref={popoverAnchorRef}
onPress={draftMessage === undefined ? onPress : undefined}
style={[action.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE ? styles.pointerEventsNone : styles.pointerEventsAuto]}
style={[action.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE && !isDeletedParentAction ? styles.pointerEventsNone : styles.pointerEventsAuto]}
onPressIn={() => isSmallScreenWidth && DeviceCapabilities.canUseTouchScreen() && ControlSelection.block()}
onPressOut={() => ControlSelection.unblock()}
onSecondaryInteraction={showPopover}
Expand Down

0 comments on commit 2282810

Please sign in to comment.