Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jalal246 committed Sep 13, 2023
1 parent e072b1d commit 14831b7
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions packages/dflex-dnd/src/LayoutManager/DFlexDnDStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,16 +249,15 @@ class DFlexDnDStore extends DFlexBaseStore {
for (let i = 0; i <= siblingsIDs.length - 1; i += 1) {
const elmID = siblingsIDs[i];

// If reconciledIDs is provided, check if the element ID is in the set
if (reconciledIDs && !reconciledIDs.has(elmID)) {
continue; // Skip if not in reconciledIDs
}

const [dflexElm, DOM] = this.getElmWithDOM(elmID);

const [scrollLeft, scrollTop] = scrollTuple;
// If no `reconciledIDs` are provided, it means all elements need initialization.
// If `reconciledIDs` are specified, only the affected elements will be checked.
if (!reconciledIDs || reconciledIDs.has(elmID)) {
const [scrollLeft, scrollTop] = scrollTuple;

dflexElm.initElmRect(DOM, scrollLeft, scrollTop);
dflexElm.initElmRect(DOM, scrollLeft, scrollTop);
}

this.linkElmToContainerGrid(container, dflexElm);

Expand Down

0 comments on commit 14831b7

Please sign in to comment.