diff --git a/packages/core/src/core/list-render.ts b/packages/core/src/core/list-render.ts index 2d3d6f649..0ddd26d6f 100644 --- a/packages/core/src/core/list-render.ts +++ b/packages/core/src/core/list-render.ts @@ -68,6 +68,7 @@ export class ListRender { newComponentRefs.push(componentRef); newContexts.push(context); } + // item might has been changed, so need to compare the id if (record.item === this.children[0] || record.item.id === this.children[0]?.id) { currentIndexForFirstElement = record.currentIndex; }