Skip to content

Commit 8e82e54

Browse files
author
tonicli
committed
fix(runtime-core): TypeError when using html comment in teleport
close #10747
1 parent 6d066dd commit 8e82e54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime-core/src/renderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2471,7 +2471,7 @@ export function traverseStaticChildren(n1: VNode, n2: VNode, shallow = false) {
24712471
}
24722472
// also inherit for comment nodes, but not placeholders (e.g. v-if which
24732473
// would have received .el during block patch)
2474-
if (__DEV__ && c2.type === Comment && !c2.el) {
2474+
if (c2.type === Comment && !c2.el) {
24752475
c2.el = c1.el
24762476
}
24772477
}

0 commit comments

Comments
 (0)