Loki: fix label browser crashing when + typed (#33900) (#33901)

(cherry picked from commit 46abef7800)

Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
This commit is contained in:
Grot (@grafanabot)
2021-05-11 10:40:41 +02:00
committed by GitHub
co-authored by Zoltán Bedi
parent 28edbbbbbb
commit d0a8e241e0
@@ -56,7 +56,12 @@ export const LokiLabel = forwardRef<HTMLElement, Props>(
)}
{...rest}
>
<Highlighter textToHighlight={text} searchWords={searchWords} highlightClassName={styles.matchHighLight} />
<Highlighter
textToHighlight={text}
searchWords={searchWords}
autoEscape={true}
highlightClassName={styles.matchHighLight}
/>
</span>
);
}