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

This commit is contained in:
agriyadev5
2021-06-08 13:16:33 +05:30
parent 77eed96e75
commit c765277297

View File

@@ -456,10 +456,11 @@ 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();
textActions.clear();
}
}