Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix bluebox showing when trying to open context menu #8672

Merged
merged 2 commits into from
Apr 19, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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