aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/search
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-06-04 20:45:29 -0400
committerbobzel <zzzman@gmail.com>2022-06-04 20:45:29 -0400
commita2ea001c425fb425e4d0cce7c59e77736da86d3d (patch)
tree603f2c845384873a11691b2d8e37095df3dee4c2 /src/client/views/search
parentba7824a91da113cc813c58b678719092c96d79a2 (diff)
fixed searching to highlight in text notes and to unhighlight when search string changes. fixed links to update when text boxes scroll (hackily)
Diffstat (limited to 'src/client/views/search')
-rw-r--r--src/client/views/search/SearchBox.tsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/views/search/SearchBox.tsx b/src/client/views/search/SearchBox.tsx
index 152b7bbcb..48c045b57 100644
--- a/src/client/views/search/SearchBox.tsx
+++ b/src/client/views/search/SearchBox.tsx
@@ -341,6 +341,9 @@ export class SearchBox extends ViewBoxBaseComponent<SearchBoxProps>() {
const query = StrCast(this._searchString);
Doc.SetSearchQuery(query);
+ Array.from(this._results.keys()).forEach(doc =>
+ DocumentManager.Instance.getFirstDocumentView(doc)?.ComponentView?.search?.(this._searchString, undefined, true)
+ );
this._results.clear();
if (query) {