aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2023-08-09 17:24:03 -0400
committerbobzel <zzzman@gmail.com>2023-08-09 17:24:03 -0400
commitd9fb47adae83c4f007e25b37aa669a054ecbde23 (patch)
tree7aacbc208b302b1fca231be70129b8d59515f6a5
parent459ce81bd7c7528ea0bec81afcaaaf2959bf8655 (diff)
made search results unhighlight when search panel goes away.
-rw-r--r--src/client/views/search/SearchBox.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/search/SearchBox.tsx b/src/client/views/search/SearchBox.tsx
index a28561107..1ceea697a 100644
--- a/src/client/views/search/SearchBox.tsx
+++ b/src/client/views/search/SearchBox.tsx
@@ -439,6 +439,7 @@ export class SearchBox extends ViewBoxBaseComponent<SearchBoxProps>() {
*/
resetSearch = action(() => {
this._results.forEach((_, doc) => {
+ DocumentManager.Instance.getFirstDocumentView(doc)?.ComponentView?.search?.('', undefined, true);
Doc.UnBrushDoc(doc);
Doc.UnHighlightDoc(doc);
Doc.ClearSearchMatches();