diff --git a/src/components/Search/SearchList/ListItem/TransactionGroupListExpanded.tsx b/src/components/Search/SearchList/ListItem/TransactionGroupListExpanded.tsx index 774a707f6edf..40b3ffb68c0d 100644 --- a/src/components/Search/SearchList/ListItem/TransactionGroupListExpanded.tsx +++ b/src/components/Search/SearchList/ListItem/TransactionGroupListExpanded.tsx @@ -265,24 +265,25 @@ function TransactionGroupListExpanded({ pendingAction={transaction.pendingAction} key={transaction.transactionID} > - {!isLargeScreenWidth ? ( - handleOnPress(transaction)} - onLongPress={() => onLongPress?.(transaction)} - accessibilityRole={CONST.ROLE.BUTTON} - accessibilityLabel={transaction.text ?? ''} - isNested - onMouseDown={(e) => e.preventDefault()} - hoverStyle={[!transaction.isDisabled && styles.hoveredComponentBG]} - dataSet={{[CONST.SELECTION_SCRAPER_HIDDEN_ELEMENT]: true, [CONST.INNER_BOX_SHADOW_ELEMENT]: false}} - id={transaction.transactionID} - sentryLabel={CONST.SENTRY_LABEL.SEARCH.EXPANDED_TRANSACTION_ROW} - > - {transactionRow} - - ) : ( - transactionRow - )} + { + if (isLargeScreenWidth) { + e?.stopPropagation(); + } + handleOnPress(transaction); + }} + onLongPress={() => onLongPress?.(transaction)} + accessibilityRole={CONST.ROLE.BUTTON} + accessibilityLabel={transaction.text ?? ''} + isNested + onMouseDown={(e) => e.preventDefault()} + hoverStyle={[!transaction.isDisabled && styles.hoveredComponentBG]} + dataSet={{[CONST.SELECTION_SCRAPER_HIDDEN_ELEMENT]: true, [CONST.INNER_BOX_SHADOW_ELEMENT]: false}} + id={transaction.transactionID} + sentryLabel={CONST.SENTRY_LABEL.SEARCH.EXPANDED_TRANSACTION_ROW} + > + {transactionRow} + ); })}