Skip to content

Commit

Permalink
Merge pull request Expensify#51818 from FitseTLT/fix-android-quick-lo…
Browse files Browse the repository at this point in the history
…ng-pressing-bug

Fix - Android - Hybrid app - Tags - Tapping a tag and quickly long press it shows "select" option in tag page
  • Loading branch information
carlosmiceli authored Nov 6, 2024
2 parents 0a8f897 + 32d4a1c commit 0f03601
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 @@ -79,7 +79,7 @@ function SelectionListWithModal<TItem extends ListItem>(

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

0 comments on commit 0f03601

Please sign in to comment.