aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DocumentView.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2020-02-08 17:45:06 -0500
committerBob Zeleznik <zzzman@gmail.com>2020-02-08 17:45:06 -0500
commita6745426e4b6de39a17a722a377e44b5bcdd90bd (patch)
tree18f5aaf68923f4b6517979386734854f68c5348d /src/client/views/nodes/DocumentView.tsx
parent1b046f76cf39f1f6cb1875aa84b45db74b6d994e (diff)
prevent clicks from passing into document contents when in time/pivot view
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r--src/client/views/nodes/DocumentView.tsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx
index dcdce5fce..14db9cffa 100644
--- a/src/client/views/nodes/DocumentView.tsx
+++ b/src/client/views/nodes/DocumentView.tsx
@@ -983,7 +983,11 @@ export class DocumentView extends DocComponent<DocumentViewProps, Document>(Docu
height: "100%",
opacity: this.Document.opacity
}}>
- {this.innards}
+ {this.onClickHandler ? <>
+ {this.innards}
+ <div className="documentView-contentBlocker"/>
+ </> :
+ this.innards}
</div>;
}
}