aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/search
diff options
context:
space:
mode:
authorAndy Rickert <andrew_rickert@brown.edu>2020-06-10 18:23:27 -0400
committerAndy Rickert <andrew_rickert@brown.edu>2020-06-10 18:23:27 -0400
commit78227f09b30db57c6f500bd2e2d02f43d133d1da (patch)
treee001398c1672351ee0b4eab5965e17e737f0c345 /src/client/views/search
parent52f88acb3141e15b1063f489273d94d98447c87a (diff)
highlights
Diffstat (limited to 'src/client/views/search')
-rw-r--r--src/client/views/search/SearchItem.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/views/search/SearchItem.tsx b/src/client/views/search/SearchItem.tsx
index 74750a40c..35fc211af 100644
--- a/src/client/views/search/SearchItem.tsx
+++ b/src/client/views/search/SearchItem.tsx
@@ -248,6 +248,8 @@ export class SearchItem extends ViewBoxBaseComponent<FieldViewProps, SearchSchem
setTimeout(() => this.targetDoc!.searchMatch = true, 0);
}
highlightDoc = (e: React.PointerEvent) => {
+ console.log(Cast(this.targetDoc.lines, listSpec("string"))!.length);
+
if (this.targetDoc!.type === DocumentType.LINK) {
if (this.targetDoc!.anchor1 && this.targetDoc!.anchor2) {