From 11891ceacc7a1640dcb62dafac81b1acd040f333 Mon Sep 17 00:00:00 2001 From: Geireann Lindfield Roberts <60007097+geireann@users.noreply.github.com> Date: Thu, 22 Oct 2020 22:24:10 +0800 Subject: Update PresBox.tsx --- src/client/views/nodes/PresBox.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 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; -- cgit v1.2.3-70-g09d2