Fix history saving for resizing/dragging element (#292)

This commit is contained in:
Gunay Mert Karadogan 2020-01-10 18:01:00 +03:00 committed by David Luzar
parent 81f23a8ccb
commit 3eb6d1de68

View File

@ -829,6 +829,8 @@ export class App extends React.Component<{}, AppState> {
draggingElement: null, draggingElement: null,
elementType: "selection" elementType: "selection"
}); });
history.resumeRecording();
this.forceUpdate(); this.forceUpdate();
}; };
@ -1058,7 +1060,6 @@ export class App extends React.Component<{}, AppState> {
history.pushEntry(history.generateCurrentEntry(elements)); history.pushEntry(history.generateCurrentEntry(elements));
history.clearRedoStack(); history.clearRedoStack();
} }
history.resumeRecording();
} }
} }