Skip to content

Build your personal knowledge base with Trilium Notes

fix(client/search): highlight remaining stuck

Elian Doran1f4dd04ef056
diff --git a/apps/client/src/widgets/react/NoteLink.tsx b/apps/client/src/widgets/react/NoteLink.tsx
index 2a9ec199d2..06841b5349 100644
--- a/apps/client/src/widgets/react/NoteLink.tsx
+++ b/apps/client/src/widgets/react/NoteLink.tsx
@@ -28,7 +28,7 @@ export default function NoteLink({ className, notePath, showNotePath, showNoteIc
if (!ref.current || !jqueryEl) return;
ref.current.replaceChildren(jqueryEl[0]);
highlightSearch(ref.current);
- }, [ jqueryEl ]);
+ }, [ jqueryEl, highlightedTokens ]);
if (style) {
jqueryEl?.css(style);