Skip to content

Commit

Permalink
fix: fix observe order
Browse files Browse the repository at this point in the history
  • Loading branch information
daybrush committed Feb 6, 2024
1 parent 3c257f7 commit 187e6c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/infinitegrid/src/InfiniteGrid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -750,8 +750,8 @@ class InfiniteGrid<Options extends InfiniteGridOptions = InfiniteGridOptions> ex

const containerManager = this.containerManager;
if (this.options.observeChildren) {
containerManager.observeChildren(added.map((index) => list[index].element!));
containerManager.unobserveChildren(removed.map((index) => prevList[index].element!));
containerManager.observeChildren(added.map((index) => list[index].element!));
}

const {
Expand Down

0 comments on commit 187e6c1

Please sign in to comment.