From a49a25470f60a8cc3c7c718b016779357276dee1 Mon Sep 17 00:00:00 2001 From: tienifr Date: Fri, 16 Jun 2023 17:38:08 +0700 Subject: [PATCH] fix: mention is selected as anchor tag --- .../HTMLEngineProvider/HTMLRenderers/MentionUserRenderer.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/HTMLEngineProvider/HTMLRenderers/MentionUserRenderer.js b/src/components/HTMLEngineProvider/HTMLRenderers/MentionUserRenderer.js index 6d4ab03b5e56..6deec34c9337 100644 --- a/src/components/HTMLEngineProvider/HTMLRenderers/MentionUserRenderer.js +++ b/src/components/HTMLEngineProvider/HTMLRenderers/MentionUserRenderer.js @@ -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" >