We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f79253 commit e791904Copy full SHA for e791904
packages/runtime-core/src/renderer.ts
@@ -2484,10 +2484,14 @@ export function traverseStaticChildren(
2484
if (c2.type === Text) {
2485
c2.el = c1.el
2486
}
2487
- // also inherit for comment nodes, but not placeholders (e.g. v-if which
2488
- // would have received .el during block patch)
2489
- if (__DEV__ && c2.type === Comment && !c2.el) {
2490
- c2.el = c1.el
+ if (__DEV__ ) {
+ // #2324 also inherit for comment nodes, but not placeholders (e.g. v-if which
+ // would have received .el during block patch)
+ if(c2.type === Comment && !c2.el) {
2491
+ c2.el = c1.el
2492
+ }
2493
+
2494
+ c2.el && (c2.el.__vnode = c2)
2495
2496
2497
0 commit comments