Skip to content

Commit 6000a8c

Browse files
Merge pull request #61131 from Expensify/revert-60218-fix-distance-rate-multiselect
[CP Staging] Revert "Fix workspace features multiselect"
2 parents a684416 + aedf247 commit 6000a8c

File tree

3 files changed

+0
-10
lines changed

3 files changed

+0
-10
lines changed

src/components/SelectionList/BaseSelectionList.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ function BaseSelectionList<TItem extends ListItem>(
129129
shouldDebounceScrolling = false,
130130
shouldPreventActiveCellVirtualization = false,
131131
shouldScrollToFocusedIndex = true,
132-
isSmallScreenWidth,
133132
onContentSizeChange,
134133
listItemTitleStyles,
135134
initialNumToRender = 12,
@@ -413,9 +412,6 @@ function BaseSelectionList<TItem extends ListItem>(
413412

414413
if (shouldShowTextInput) {
415414
clearInputAfterSelect();
416-
} else if (isSmallScreenWidth) {
417-
onCheckboxPress?.(item);
418-
return;
419415
}
420416
}
421417

@@ -441,8 +437,6 @@ function BaseSelectionList<TItem extends ListItem>(
441437
shouldPreventDefaultFocusOnSelectRow,
442438
isFocused,
443439
isScreenFocused,
444-
isSmallScreenWidth,
445-
onCheckboxPress,
446440
],
447441
);
448442

src/components/SelectionList/types.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -568,9 +568,6 @@ type SelectionListProps<TItem extends ListItem> = Partial<ChildrenProps> & {
568568
/** Whether focus event should be delayed */
569569
shouldDelayFocus?: boolean;
570570

571-
/** Whether the layout is narrow */
572-
isSmallScreenWidth?: boolean;
573-
574571
/** Callback to fire when the text input changes */
575572
onArrowFocus?: (focusedItem: TItem) => void;
576573

src/components/SelectionListWithModal/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ function SelectionListWithModal<TItem extends ListItem>(
106106
sections={sections}
107107
onLongPressRow={handleLongPressRow}
108108
isScreenFocused={isScreenFocused}
109-
isSmallScreenWidth={isSmallScreenWidth}
110109
// eslint-disable-next-line react/jsx-props-no-spreading
111110
{...rest}
112111
/>

0 commit comments

Comments
 (0)