File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
packages/runtime-core/src Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -1155,11 +1155,13 @@ function baseCreateRenderer(
11551155 parentSuspense ,
11561156 isSVG
11571157 )
1158- // #2080 if the stable fragment has a key, it's a <template v-for> that may
1159- // get moved around. Make sure all root level vnodes inherit el.
1160- // #2134 or if it's a component root, it may also get moved around
1161- // as the component is being moved.
1162- if (
1158+ if ( __DEV__ && parentComponent && parentComponent . type . __hmrId ) {
1159+ traverseStaticChildren ( n1 , n2 )
1160+ } else if (
1161+ // #2080 if the stable fragment has a key, it's a <template v-for> that may
1162+ // get moved around. Make sure all root level vnodes inherit el.
1163+ // #2134 or if it's a component root, it may also get moved around
1164+ // as the component is being moved.
11631165 n2 . key != null ||
11641166 ( parentComponent && n2 === parentComponent . subTree )
11651167 ) {
You can’t perform that action at this time.
0 commit comments