Skip to content

Commit b1fcf20

Browse files
authored
Merge pull request Expensify#61055 from software-mansion-labs/bugfix/app-freezes-after-select-on-reports
[CP Staging] Fix bug when app freezes after selecting a report item
2 parents 2a04caa + ea0daa4 commit b1fcf20

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/Search/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ function Search({queryJSON, currentSearchResults, lastNonEmptySearchResults, onS
456456

457457
const isChat = type === CONST.SEARCH.DATA_TYPES.CHAT;
458458
const isTask = type === CONST.SEARCH.DATA_TYPES.TASK;
459-
const canSelectMultiple = !isChat && !isTask && isLargeScreenWidth;
459+
const canSelectMultiple = !isChat && !isTask && (!isSmallScreenWidth || selectionMode?.isEnabled === true);
460460

461461
const sortedSelectedData = sortedData.map((item) => {
462462
const baseKey = isChat
@@ -547,7 +547,7 @@ function Search({queryJSON, currentSearchResults, lastNonEmptySearchResults, onS
547547
onCheckboxPress={toggleTransaction}
548548
onAllCheckboxPress={toggleAllTransactions}
549549
canSelectMultiple={canSelectMultiple}
550-
shouldPreventLongPressRow={isChat}
550+
shouldPreventLongPressRow={isChat || isTask}
551551
SearchTableHeader={
552552
!shouldShowTableHeader ? undefined : (
553553
<SearchTableHeader

0 commit comments

Comments
 (0)