mirror of
https://github.com/konvajs/konva.git
synced 2025-10-15 12:34:52 +08:00
Merge branch 'master' of github.com:konvajs/konva
This commit is contained in:
@@ -190,7 +190,9 @@ export class Stage extends Container<BaseLayer> {
|
||||
}
|
||||
this._setAttr(CONTAINER, container);
|
||||
if (this.content) {
|
||||
this.content.parentElement.removeChild(this.content);
|
||||
if (this.content.parentElement) {
|
||||
this.content.parentElement.removeChild(this.content);
|
||||
}
|
||||
container.appendChild(this.content);
|
||||
}
|
||||
return this;
|
||||
|
Reference in New Issue
Block a user