diff options
author | bob <bcz@cs.brown.edu> | 2019-02-22 10:07:26 -0500 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-02-22 10:07:26 -0500 |
commit | 81511528e418c41332d06faea9c3287cf8abf553 (patch) | |
tree | e5e97573436257d79fa89172b11fac8546e0dd70 /src/client/views/nodes/DocumentView.tsx | |
parent | 38ca0618dcdeb57d5a91557b392c1aff095868be (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.tsx | 3 |
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; |