Answer the question
In order to leave comments, you need to log in
How can I stop onClick from being executed when a message is highlighted?
Hi all.
<MessageItemWrapper
message={message}
user={user}
onClick={e => selectMessage(message, e)}>
{
userFirstMessage() && !conversation.is_channel ?
<MessageUserAvatar src={getUserAvatarSrc(message.sender)} /> : ''
}
<div>
<TimeSend>{getMessageTime(message)} {message.edited}</TimeSend>
<MessageText message={message} user={user}>
{parentMessage(message)}
{forwardedMessage(message)}
{message.message}
</MessageText>
</div>
</MessageItemWrapper>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question