aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/TreeView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-04-06 18:51:01 -0400
committerbobzel <zzzman@gmail.com>2021-04-06 18:51:01 -0400
commitfcbe1957d985655167ee8365fbb8f2755bbfd206 (patch)
treef22889a35e4cef6933acf010e4e0f79c7dc253c9 /src/client/views/collections/TreeView.tsx
parent69563c0c81a3e6ade2fe460af8fad76cef3a3897 (diff)
cleanup
Diffstat (limited to 'src/client/views/collections/TreeView.tsx')
-rw-r--r--src/client/views/collections/TreeView.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/TreeView.tsx b/src/client/views/collections/TreeView.tsx
index 5cf8a6986..2cce9c2f5 100644
--- a/src/client/views/collections/TreeView.tsx
+++ b/src/client/views/collections/TreeView.tsx
@@ -493,9 +493,9 @@ export class TreeView extends React.Component<TreeViewProps> {
}
showContextMenu = (e: React.MouseEvent) => {
- DocumentViewInternal.SelectOnContextsMenu = false;
+ DocumentViewInternal.SelectAfterContextMenu = false;
simulateMouseClick(this._docRef?.ContentDiv, e.clientX, e.clientY + 30, e.screenX, e.screenY + 30);
- DocumentViewInternal.SelectOnContextsMenu = true;
+ DocumentViewInternal.SelectAfterContextMenu = true;
}
contextMenuItems = () => Doc.IsSystem(this.doc) ? [] : this.doc.isFolder ?
[{ script: ScriptField.MakeFunction(`scriptContext.makeFolder()`, { scriptContext: "any" })!, label: "New Folder" }] :