aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2025-03-24 18:28:20 -0400
committerbobzel <zzzman@gmail.com>2025-03-24 18:28:20 -0400
commitc1a474fd2cf633fa204f1bb6dce2539f4b172d6c (patch)
tree3612c9b85e912e984591fbbac72edd67d296654b /src
parent858f5d2f1621695a703b0e3f8297521c3ebe692d (diff)
fix onclick disabling
Diffstat (limited to 'src')
-rw-r--r--src/client/views/nodes/DocumentView.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx
index c355e57d4..115aedbe8 100644
--- a/src/client/views/nodes/DocumentView.tsx
+++ b/src/client/views/nodes/DocumentView.tsx
@@ -692,7 +692,7 @@ export class DocumentViewInternal extends DocComponent<FieldViewProps & Document
.ScreenToLocalTransform()
.translate(-NumCast(this.Document.borderWidth), -this.headerMargin - NumCast(this.Document.borderWidth))
.scale(this._props.showAIEditor ? (this._props.PanelHeight() || 1) / this.aiContentsHeight() : 1);
- onClickFunc = this.disableClickScriptFunc ? undefined : () => this.onClickHdlr;
+ onClickFunc = () => (this.disableClickScriptFunc ? undefined : this.onClickHdlr);
setHeight = (height: number) => { !this._props.suppressSetHeight && (this.layoutDoc._height = Math.min(NumCast(this.layoutDoc._maxHeight, Number.MAX_SAFE_INTEGER), height + 2 * NumCast(this.Document.borderWidth))); } // prettier-ignore
setContentView = action((view: ViewBoxInterface<FieldViewProps>) => { this._componentView = view; }); // prettier-ignore
isContentActive = (): boolean | undefined => this._isContentActive;