diff options
author | Geireann Lindfield Roberts <60007097+geireann@users.noreply.github.com> | 2020-10-22 22:24:10 +0800 |
---|---|---|
committer | Geireann Lindfield Roberts <60007097+geireann@users.noreply.github.com> | 2020-10-22 22:24:10 +0800 |
commit | 11891ceacc7a1640dcb62dafac81b1acd040f333 (patch) | |
tree | 68be3bc3cc69be4227569cb7691259e79aac0f14 /src | |
parent | 4609f550fcc8c3e9c7fd176faa80671d0b55d427 (diff) |
Update PresBox.tsx
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/nodes/PresBox.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/PresBox.tsx b/src/client/views/nodes/PresBox.tsx index 20106dc3d..39e1ec58b 100644 --- a/src/client/views/nodes/PresBox.tsx +++ b/src/client/views/nodes/PresBox.tsx @@ -690,14 +690,14 @@ export class PresBox extends ViewBoxBaseComponent<FieldViewProps, PresBoxSchema> switch (e.key) { case "Backspace": if (this.layoutDoc.presStatus === "edit") { - undoBatch(action(() => { + runInAction(() => { for (const doc of this._selectedArray) { this.removeDocument(doc); } this._selectedArray = []; this._eleArray = []; this._dragArray = []; - }))(); + }); handled = true; } break; |