Skip to content

Commit

Permalink
Merge pull request #8672 from mollfpr/fix-8246
Browse files Browse the repository at this point in the history
fix bluebox showing when trying to open context menu
  • Loading branch information
Beamanator authored Apr 19, 2022
2 parents 8f65450 + 1460ef1 commit add4755
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/pages/home/report/ReportActionItemSingle.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import Navigation from '../../../libs/Navigation/Navigation';
import ROUTES from '../../../ROUTES';
import {withPersonalDetails} from '../../../components/OnyxProvider';
import Tooltip from '../../../components/Tooltip';
import ControlSelection from '../../../libs/ControlSelection';

const propTypes = {
/** All the data of the action */
Expand Down Expand Up @@ -63,7 +64,12 @@ const ReportActionItemSingle = (props) => {

return (
<View style={props.wrapperStyles}>
<Pressable style={styles.alignSelfStart} onPress={() => showUserDetails(props.action.actorEmail)}>
<Pressable
style={styles.alignSelfStart}
onPressIn={ControlSelection.block}
onPressOut={ControlSelection.unblock}
onPress={() => showUserDetails(props.action.actorEmail)}
>
<Tooltip text={props.action.actorEmail}>
<Avatar
imageStyles={[styles.actionAvatar]}
Expand All @@ -74,7 +80,12 @@ const ReportActionItemSingle = (props) => {
<View style={[styles.chatItemRight]}>
{props.showHeader ? (
<View style={[styles.chatItemMessageHeader]}>
<Pressable style={[styles.flexShrink1]} onPress={() => showUserDetails(props.action.actorEmail)}>
<Pressable
style={[styles.flexShrink1]}
onPressIn={ControlSelection.block}
onPressOut={ControlSelection.unblock}
onPress={() => showUserDetails(props.action.actorEmail)}
>
{_.map(personArray, (fragment, index) => (
<ReportActionItemFragment
key={`person-${props.action.sequenceNumber}-${index}`}
Expand Down

0 comments on commit add4755

Please sign in to comment.