Skip to content

Commit

Permalink
Merge pull request #577 from /issues/200
Browse files Browse the repository at this point in the history
  • Loading branch information
jfhenon committed Jun 8, 2021
2 parents dc9e11d + a600a13 commit 2c15678
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/editor/panels/TopPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -456,10 +456,13 @@ class TopPanel {
* @returns {void}
*/
clickUndo() {
const { undoMgr } = this.editor.svgCanvas;
const { undoMgr, textActions } = this.editor.svgCanvas;
if (undoMgr.getUndoStackSize() > 0) {
undoMgr.undo();
this.editor.layersPanel.populateLayers();
if(this.editor.svgCanvas.getMode() === 'textedit') {
textActions.clear();
}
}
}

Expand Down

0 comments on commit 2c15678

Please sign in to comment.