Skip to content

Commit 0afdb92

Browse files
committed
fix: copy to clipboard shows unnecessarily
1 parent adade48 commit 0afdb92

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/MenuItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ function MenuItem({
679679
onPress={shouldCheckActionAllowedOnPress ? callFunctionIfActionIsAllowed(onPressAction, isAnonymousAction) : onPressAction}
680680
onPressIn={() => shouldBlockSelection && shouldUseNarrowLayout && canUseTouchScreen() && ControlSelection.block()}
681681
onPressOut={ControlSelection.unblock}
682-
onSecondaryInteraction={copyValue ? secondaryInteraction : onSecondaryInteraction}
682+
onSecondaryInteraction={copyable && !deviceHasHoverSupport ? secondaryInteraction : onSecondaryInteraction}
683683
wrapperStyle={outerWrapperStyle}
684684
activeOpacity={!interactive ? 1 : variables.pressDimValue}
685685
opacityAnimationDuration={0}

0 commit comments

Comments
 (0)