From ba48c8ab57a326848bb6864474d2264cd083a54e Mon Sep 17 00:00:00 2001 From: daiwei Date: Mon, 29 Sep 2025 10:53:08 +0800 Subject: [PATCH] chore: update --- packages/runtime-vapor/src/dom/node.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/runtime-vapor/src/dom/node.ts b/packages/runtime-vapor/src/dom/node.ts index 5ec574e855..c88747f5fe 100644 --- a/packages/runtime-vapor/src/dom/node.ts +++ b/packages/runtime-vapor/src/dom/node.ts @@ -139,16 +139,16 @@ export function disableHydrationNodeLookup(): void { } export function locateChildByLogicalIndex( - node: InsertionParent, + parent: InsertionParent, logicalIndex: number, ): Node | null { - let child = (node.$lastLogicalChild || node.firstChild) as ChildItem + let child = (parent.$lastLogicalChild || parent.firstChild) as ChildItem let fromIndex = child.$idx || 0 while (child) { if (fromIndex === logicalIndex) { child.$idx = logicalIndex - return (node.$lastLogicalChild = child) + return (parent.$lastLogicalChild = child) } child = ( -- 2.47.3