Skip to content

Commit

Permalink
Merge pull request #33963 from bernhardoj/fix/33547-double-click-cont…
Browse files Browse the repository at this point in the history
…ext-menu

Fix double clicking mini context menu selects the message
  • Loading branch information
aldo-expensify authored Jan 8, 2024
2 parents 288becc + edd2a20 commit 0132a89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/BaseMiniContextMenuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import DomUtils from '@libs/DomUtils';
import getButtonState from '@libs/getButtonState';
import ReportActionComposeFocusManager from '@libs/ReportActionComposeFocusManager';
import variables from '@styles/variables';
import CONST from '@src/CONST';
import PressableWithoutFeedback from './Pressable/PressableWithoutFeedback';
import Tooltip from './Tooltip/PopoverAnchorTooltip';

Expand Down Expand Up @@ -66,6 +67,7 @@ function BaseMiniContextMenuItem({tooltipText, onPress, children, isDelayButtonS
event.preventDefault();
}}
accessibilityLabel={tooltipText}
role={CONST.ROLE.BUTTON}
style={({hovered, pressed}) => [
styles.reportActionContextMenuMiniButton,
StyleUtils.getButtonBackgroundColorStyle(getButtonState(hovered, pressed, isDelayButtonStateComplete)),
Expand Down
1 change: 1 addition & 0 deletions src/styles/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1351,6 +1351,7 @@ const createStyleUtils = (theme: ThemeColors, styles: ThemeStyles) => ({
...(isReportActionItemGrouped ? positioning.tn8 : positioning.tn4),
...positioning.r4,
...styles.cursorDefault,
...styles.userSelectNone,
position: 'absolute',
zIndex: 8,
}),
Expand Down

0 comments on commit 0132a89

Please sign in to comment.