diff --git a/packages/runtime-core/src/renderer.ts b/packages/runtime-core/src/renderer.ts index c7dfbf45dd2..27f1b320a42 100644 --- a/packages/runtime-core/src/renderer.ts +++ b/packages/runtime-core/src/renderer.ts @@ -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 } }