Skip to content

Commit

Permalink
Merge pull request #20894 from tienifr/fix/20814-mention-is-selected-…
Browse files Browse the repository at this point in the history
…as-anchor

Fix: Mention is selected as anchor tag
  • Loading branch information
Julesssss authored Jun 16, 2023
2 parents 9cfb51b + a49a254 commit 6461bf4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ function MentionUserRenderer(props) {
href={ROUTES.getDetailsRoute(loginWithoutLeadingAt)}
style={[_.omit(props.style, 'color'), StyleUtils.getMentionStyle(isOurMention), {color: StyleUtils.getMentionTextColor(isOurMention)}]}
onPress={() => showUserDetails(loginWithoutLeadingAt)}
// Add testID so it is NOT selected as an anchor tag by SelectionScraper
testID="span"
>
<TNodeChildrenRenderer tnode={props.tnode} />
</TextLink>
Expand Down

0 comments on commit 6461bf4

Please sign in to comment.