diff options
author | bobzel <zzzman@gmail.com> | 2023-02-02 00:20:54 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-02-02 00:20:54 -0500 |
commit | ac6f6a19fedc9c6a9d233a43aee4ed82b620d5ad (patch) | |
tree | b31769fd93f7d8df244bb95936d842e2f5c1b6a4 /src/client/views/nodes/button/FontIconBox.tsx | |
parent | 294412015c0f3dbfaa8982f1dcab100fbfdd036f (diff) |
added initial support for equationBox font size setting
Diffstat (limited to 'src/client/views/nodes/button/FontIconBox.tsx')
-rw-r--r-- | src/client/views/nodes/button/FontIconBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/button/FontIconBox.tsx b/src/client/views/nodes/button/FontIconBox.tsx index 1de29f806..9ef32014b 100644 --- a/src/client/views/nodes/button/FontIconBox.tsx +++ b/src/client/views/nodes/button/FontIconBox.tsx @@ -133,7 +133,7 @@ export class FontIconBox extends DocComponent<ButtonProps>() { @computed get numberButton() { const numBtnType: string = StrCast(this.rootDoc.numBtnType); const numScript = ScriptCast(this.rootDoc.script); - const setValue = (value: number) => numScript?.script.run({ value, _readOnly_: false }); + const setValue = (value: number) => UndoManager.RunInBatch(() => numScript?.script.run({ value, _readOnly_: false }), 'set num value'); // Script for checking the outcome of the toggle const checkResult: number = numScript?.script.run({ value: 0, _readOnly_: true }).result || 0; |