diff options
| author | Bob Zeleznik <zzzman@gmail.com> | 2020-03-13 09:47:36 -0400 |
|---|---|---|
| committer | Bob Zeleznik <zzzman@gmail.com> | 2020-03-13 09:47:36 -0400 |
| commit | 6886bf8c0549f09e9d911ab105fcf4b2d2f051de (patch) | |
| tree | ac07f7a7ca04ac78f5c1d39c96f76b7aa4db355a /src/client/views/nodes/DocumentView.tsx | |
| parent | 8f847d110b8c0d0a8213b92dffdb1394ac0d394b (diff) | |
added reification of view menu items. tweaked sizing of collection chrome display
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
| -rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index 3ccbbe2bf..c558a1da7 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -293,7 +293,7 @@ export class DocumentView extends DocComponent<DocumentViewProps, Document>(Docu UndoManager.RunInBatch(() => this.onClickHandler!.script.run({ this: this.Document.isTemplateForField && this.props.DataDoc ? this.props.DataDoc : this.props.Document, // try this.props.Document.expandedTemplate || this.props.Document containingCollection: this.props.ContainingCollectionDoc, shiftKey: e.shiftKey - }, console.log) && !BoolCast(this.props.Document.dontSelect) && this.select(false), "on click"); + }, console.log) && !this.props.Document.dontSelect && !this.props.Document.isButton && this.select(false), "on click"); } else if (this.Document.type === DocumentType.BUTTON) { UndoManager.RunInBatch(() => ScriptBox.EditButtonScript("On Button Clicked ...", this.props.Document, "onClick", e.clientX, e.clientY), "on button click"); } else if (this.Document.isButton) { |
