diff options
author | bobzel <zzzman@gmail.com> | 2022-07-03 14:21:41 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-07-03 14:21:41 -0400 |
commit | 4710ba982c5fd974e7edf06b35eb9199584eb033 (patch) | |
tree | 07da3d677b2e9c386ddf8375c640570897592811 | |
parent | ed099a3990d8047c32b614f1ca2d13af67910998 (diff) |
fixed contextMenu to not trigger on a collection when the contextMenu event has already been handled.
-rw-r--r-- | src/client/views/collections/CollectionView.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/collections/CollectionView.tsx b/src/client/views/collections/CollectionView.tsx index b432104a1..83f5198a9 100644 --- a/src/client/views/collections/CollectionView.tsx +++ b/src/client/views/collections/CollectionView.tsx @@ -173,6 +173,7 @@ export class CollectionView extends ViewBoxAnnotatableComponent<ViewBoxAnnotatab onContextMenu = (e: React.MouseEvent): void => { const cm = ContextMenu.Instance; + if (e.nativeEvent.cancelBubble) return; if (cm && !e.isPropagationStopped() && this.rootDoc[Id] !== CurrentUserUtils.MainDocId) { // need to test this because GoldenLayout causes a parallel hierarchy in the React DOM for its children and the main document view7 this.setupViewTypes("UI Controls...", vtype => { const newRendition = Doc.MakeAlias(this.rootDoc); |