#200 Cursor left on canvas after "undo" on adding text
parent
77eed96e75
commit
c765277297
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue