diff options
| author | Aubrey Li <Aubrey-Li> | 2022-04-12 19:21:53 -0400 |
|---|---|---|
| committer | Aubrey Li <Aubrey-Li> | 2022-04-12 19:21:53 -0400 |
| commit | 98567999b9882ed093bb0d750504a1bd10aa9a94 (patch) | |
| tree | cff66787e66c93a4b9096c3d6714701f8978fd7d /src/client/views/nodes/button/FontIconBox.tsx | |
| parent | 4cb2fc6f0a173939b5ee51ff2d6548058799facd (diff) | |
revert presbox & treeview onclick focus
Diffstat (limited to 'src/client/views/nodes/button/FontIconBox.tsx')
| -rw-r--r-- | src/client/views/nodes/button/FontIconBox.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/nodes/button/FontIconBox.tsx b/src/client/views/nodes/button/FontIconBox.tsx index ca13590de..0c960a95b 100644 --- a/src/client/views/nodes/button/FontIconBox.tsx +++ b/src/client/views/nodes/button/FontIconBox.tsx @@ -229,6 +229,7 @@ export class FontIconBox extends DocComponent<ButtonProps>() { const backgroundColor = this.props.styleProvider?.(this.rootDoc, this.props, StyleProp.BackgroundColor); const script = ScriptCast(this.rootDoc.script); + if (!script) { return null }; let noviceList: string[] = []; let text: string | undefined; |
