mirror of https://github.com/vuejs/core.git
fix: properly handle advance hydration node
This commit is contained in:
parent
9e16723663
commit
bcdcc673ec
|
@ -21,7 +21,9 @@ export function setCurrentHydrationNode(node: Node | null): void {
|
|||
}
|
||||
|
||||
export function advanceHydrationNode(node: Node): void {
|
||||
setCurrentHydrationNode(node.nextSibling || node.parentNode)
|
||||
setCurrentHydrationNode(
|
||||
node.nextSibling || (node.parentNode ? node.parentNode.nextSibling : null),
|
||||
)
|
||||
}
|
||||
|
||||
let isOptimized = false
|
||||
|
|
Loading…
Reference in New Issue