Skip to content

Commit

Permalink
Merge pull request #48004 from Krishna2323/krishna2323/issue/47651
Browse files Browse the repository at this point in the history
fix: Web - IOU - Swiping with the mouse causes text to be selected and tabs quickly switching.
  • Loading branch information
stitesExpensify authored Sep 9, 2024
2 parents a506fa4 + f4e2465 commit be4b0bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/TabSelector/TabSelectorItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,13 @@ function TabSelectorItem({icon, title = '', onPress = () => {}, backgroundColor
return (
<AnimatedPressableWithFeedback
accessibilityLabel={title}
style={[styles.tabSelectorButton, styles.tabBackground(isHovered, isActive, backgroundColor)]}
style={[styles.tabSelectorButton, styles.tabBackground(isHovered, isActive, backgroundColor), styles.userSelectNone]}
wrapperStyle={[styles.flex1]}
onPress={onPress}
onHoverIn={() => setIsHovered(true)}
onHoverOut={() => setIsHovered(false)}
role={CONST.ROLE.BUTTON}
dataSet={{[CONST.SELECTION_SCRAPER_HIDDEN_ELEMENT]: true}}
>
<TabIcon
icon={icon}
Expand Down

0 comments on commit be4b0bc

Please sign in to comment.