From 6b2896756c55727ed397c223187cb03fe8a51a59 Mon Sep 17 00:00:00 2001 From: Bob Zeleznik Date: Tue, 28 Apr 2020 15:51:34 -0400 Subject: ignore rightlick events on masonry header to allow for context menu from doc decorations --- src/client/views/collections/CollectionMasonryViewFieldRow.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/client/views/collections/CollectionMasonryViewFieldRow.tsx b/src/client/views/collections/CollectionMasonryViewFieldRow.tsx index 3bada43f0..7ad15ef41 100644 --- a/src/client/views/collections/CollectionMasonryViewFieldRow.tsx +++ b/src/client/views/collections/CollectionMasonryViewFieldRow.tsx @@ -183,8 +183,10 @@ export class CollectionMasonryViewFieldRow extends React.Component) => { - setupMoveUpEvents(this, e, this.headerMove, emptyFunction, () => (this.props.parent.props.Document._chromeStatus === "disabled") && this.collapseSection(e)); - this._createAliasSelected = false; + if (e.button === 0 && !e.ctrlKey) { + setupMoveUpEvents(this, e, this.headerMove, emptyFunction, () => (this.props.parent.props.Document._chromeStatus === "disabled") && this.collapseSection(e)); + this._createAliasSelected = false; + } } renderColorPicker = () => { -- cgit v1.2.3-70-g09d2