File tree 1 file changed +7
-5
lines changed
packages/runtime-core/src
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -1155,11 +1155,13 @@ function baseCreateRenderer(
1155
1155
parentSuspense ,
1156
1156
isSVG
1157
1157
)
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.
1163
1165
n2 . key != null ||
1164
1166
( parentComponent && n2 === parentComponent . subTree )
1165
1167
) {
You can’t perform that action at this time.
0 commit comments