diff options
author | bobzel <zzzman@gmail.com> | 2024-04-26 01:41:25 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-04-26 01:41:25 -0400 |
commit | 8025b0b38e49a61808a8924382247fe2c9ac1e05 (patch) | |
tree | d5891337997dfbeb151b1ef57b09df0d3dc48c9a | |
parent | af67724dc3a1390cd0c2aded4aeda69f948a0f66 (diff) |
from last
-rw-r--r-- | src/client/views/nodes/FontIconBox/FontIconBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/FontIconBox/FontIconBox.tsx b/src/client/views/nodes/FontIconBox/FontIconBox.tsx index 754c6a68c..ebd6c97bc 100644 --- a/src/client/views/nodes/FontIconBox/FontIconBox.tsx +++ b/src/client/views/nodes/FontIconBox/FontIconBox.tsx @@ -275,7 +275,7 @@ export class FontIconBox extends ViewBoxBaseComponent<ButtonProps>() { // Determine the type of toggle button const tooltip: string = StrCast(this.Document.toolTip); - const script = ScriptCast(this.Document.onClick).script; + const script = ScriptCast(this.Document.onClick)?.script; const toggleStatus = script?.run({ this: this.Document, self: this.Document, value: undefined, _readOnly_: true }).result; // Colors const color = this._props.styleProvider?.(this.layoutDoc, this._props, StyleProp.Color); |