Skip to content

Commit a03952d

Browse files
committed
container.Base: createItem() => soften the parent.remove() call for existing instances #6704
1 parent dbdcb0c commit a03952d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/container/Base.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ class Container extends Component {
331331
parent = item.parent;
332332

333333
if (parent && parent !== me) {
334-
parent.remove(item, false);
334+
parent.remove?.(item, false);
335335
delete item.vdom.removeDom;
336336

337337
// Convenience logic, especially for moving components into different browser windows:

0 commit comments

Comments
 (0)