From 3eb6d1de68f40d6050b9a0d6bd0fd12f1ecc69e0 Mon Sep 17 00:00:00 2001 From: Gunay Mert Karadogan Date: Fri, 10 Jan 2020 18:01:00 +0300 Subject: [PATCH] Fix history saving for resizing/dragging element (#292) --- src/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index 199884a4..0c61158b 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -829,6 +829,8 @@ export class App extends React.Component<{}, AppState> { draggingElement: null, elementType: "selection" }); + + history.resumeRecording(); this.forceUpdate(); }; @@ -1058,7 +1060,6 @@ export class App extends React.Component<{}, AppState> { history.pushEntry(history.generateCurrentEntry(elements)); history.clearRedoStack(); } - history.resumeRecording(); } }