File tree 1 file changed +4
-5
lines changed
packages/runtime-core/src
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -601,10 +601,9 @@ export function createRenderer<
601
601
// - In the case of a Fragment, we need to provide the actual parent
602
602
// of the Fragment itself so it can move its children.
603
603
oldVNode . type === Fragment ||
604
- // - In the case of Comment nodes, this is likely a v-if toggle, which
605
- // also needs the correct parent container.
606
- oldVNode . type === Comment ||
607
- newVNode . type === Comment ||
604
+ // - In the case of different nodes, there is going to be a replacement
605
+ // which also requires the correct parent container
606
+ ! isSameVNodeType ( oldVNode , newVNode ) ||
608
607
// - In the case of a component, it could contain anything.
609
608
oldVNode . shapeFlag & ShapeFlags . COMPONENT
610
609
? hostParentNode ( oldVNode . el ! ) !
@@ -613,7 +612,7 @@ export function createRenderer<
613
612
fallbackContainer
614
613
patch (
615
614
oldVNode ,
616
- newChildren [ i ] ,
615
+ newVNode ,
617
616
container ,
618
617
null ,
619
618
parentComponent ,
You can’t perform that action at this time.
0 commit comments