From a28cbb76d89020a907313199a67e13e01084f1a7 Mon Sep 17 00:00:00 2001 From: pubuzhixing8 Date: Fri, 19 Apr 2024 17:56:08 +0800 Subject: [PATCH] chore: add note --- packages/core/src/core/list-render.ts | 1 + 1 file changed, 1 insertion(+) 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; }