fix issue with undo because this.elem was overwritten with node.remove()
This commit is contained in:
@@ -516,7 +516,7 @@ const undoMgr = canvas.undoMgr = new UndoManager({
|
||||
} else if (!isApply) {
|
||||
restoreRefElems(cmd.elem);
|
||||
}
|
||||
if (cmd.elem.tagName === 'use') {
|
||||
if (cmd.elem && cmd.elem.tagName === 'use') {
|
||||
setUseData(cmd.elem);
|
||||
}
|
||||
} else if (cmdType === ChangeElementCommand.type()) {
|
||||
|
||||
Reference in New Issue
Block a user