File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 />
You can’t perform that action at this time.
0 commit comments