aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DocumentView.tsx
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-02-22 10:07:26 -0500
committerbob <bcz@cs.brown.edu>2019-02-22 10:07:26 -0500
commit81511528e418c41332d06faea9c3287cf8abf553 (patch)
treee5e97573436257d79fa89172b11fac8546e0dd70 /src/client/views/nodes/DocumentView.tsx
parent38ca0618dcdeb57d5a91557b392c1aff095868be (diff)
fixed some exceptions. fixed spurious context menu. fixed excessive rendering.
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r--src/client/views/nodes/DocumentView.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx
index 2114a5697..69e413c6f 100644
--- a/src/client/views/nodes/DocumentView.tsx
+++ b/src/client/views/nodes/DocumentView.tsx
@@ -211,10 +211,11 @@ export class DocumentView extends React.Component<DocumentViewProps> {
@action
onContextMenu = (e: React.MouseEvent): void => {
+ e.preventDefault()
+ e.stopPropagation();
if (!SelectionManager.IsSelected(this)) {
return;
}
- e.preventDefault()
if (!this._contextMenuCanOpen) {
return;