diff options
author | bobzel <zzzman@gmail.com> | 2020-10-22 10:24:39 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-10-22 10:24:39 -0400 |
commit | 426094fa4dfbdab19b2cb99daf90438e884094b1 (patch) | |
tree | 472645b549bfc8925ab6000d08dab3ce9a7a84ec | |
parent | df6c56c3b9d527a0b6e7f79c09cb19ec2484feec (diff) | |
parent | 11891ceacc7a1640dcb62dafac81b1acd040f333 (diff) |
Merge branch 'presentation_v1' of https://github.com/browngraphicslab/Dash-Web into presentation_v1
-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 4674982bb..180ebd6f1 100644 --- a/src/client/views/nodes/PresBox.tsx +++ b/src/client/views/nodes/PresBox.tsx @@ -692,14 +692,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; |