#200 Cursor left on canvas after "undo" on adding text
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user