@@ -146,7 +146,10 @@ export const TeleportImpl = {
|
||||
const oldChildren = n1.children as VNode[]
|
||||
const children = n2.children as VNode[]
|
||||
for (let i = 0; i < children.length; i++) {
|
||||
children[i].el = oldChildren[i].el
|
||||
// only inherit for non-patched nodes (i.e. static ones)
|
||||
if (!children[i].el) {
|
||||
children[i].el = oldChildren[i].el
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (!optimized) {
|
||||
|
||||
Reference in New Issue
Block a user