Skip to content

Commit

Permalink
chore: add note
Browse files Browse the repository at this point in the history
  • Loading branch information
pubuzhixing8 committed Apr 19, 2024
1 parent a8fd7f3 commit a28cbb7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/core/list-render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a28cbb7

Please sign in to comment.