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

This commit is contained in:
Zoltán Bedi 2021-05-11 10:06:40 +02:00 committed by GitHub
parent 7c5d3435f9
commit 46abef7800
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>
);
}