Skip to content

Commit

Permalink
add the small screen condition
Browse files Browse the repository at this point in the history
  • Loading branch information
FitseTLT committed Nov 8, 2024
1 parent 70d3dd3 commit 25b45b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/SelectionListWithModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function SelectionListWithModal<TItem extends ListItem>(

const handleLongPressRow = (item: TItem) => {
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
if (!turnOnSelectionModeOnLongPress || item?.isDisabled || item?.isDisabledCheckbox || (!isFocused && !isScreenFocused)) {
if (!turnOnSelectionModeOnLongPress || !isSmallScreenWidth || item?.isDisabled || item?.isDisabledCheckbox || (!isFocused && !isScreenFocused)) {
return;
}
setLongPressedItem(item);
Expand Down

0 comments on commit 25b45b3

Please sign in to comment.