Skip to content

Commit

Permalink
fix(runtime-core): TypeError when using html comment in teleport
Browse files Browse the repository at this point in the history
  • Loading branch information
tonicli committed Apr 20, 2024
1 parent 6d066dd commit 8e82e54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-core/src/renderer.ts
Expand Up @@ -2471,7 +2471,7 @@ export function traverseStaticChildren(n1: VNode, n2: VNode, shallow = false) {
}
// also inherit for comment nodes, but not placeholders (e.g. v-if which
// would have received .el during block patch)
if (__DEV__ && c2.type === Comment && !c2.el) {
if (c2.type === Comment && !c2.el) {
c2.el = c1.el
}
}
Expand Down

0 comments on commit 8e82e54

Please sign in to comment.