#200 Cursor left on canvas after "undo" on adding text

master
agriyadev5 2021-06-08 13:16:33 +05:30
parent 77eed96e75
commit c765277297
1 changed files with 2 additions and 1 deletions

View File

@ -456,10 +456,11 @@ class TopPanel {
* @returns {void} * @returns {void}
*/ */
clickUndo() { clickUndo() {
const { undoMgr } = this.editor.svgCanvas; const { undoMgr, textActions } = this.editor.svgCanvas;
if (undoMgr.getUndoStackSize() > 0) { if (undoMgr.getUndoStackSize() > 0) {
undoMgr.undo(); undoMgr.undo();
this.editor.layersPanel.populateLayers(); this.editor.layersPanel.populateLayers();
textActions.clear();
} }
} }