Skip to content

Commit

Permalink
examples.grid.bigData.GridContainer: updating the columns is visually…
Browse files Browse the repository at this point in the history
… broken #6241
  • Loading branch information
tobiu committed Jan 15, 2025
1 parent 15f2ad2 commit 9085a1a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/component/Base.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1954,6 +1954,17 @@ class Component extends Base {
console.warn('vdom parent update conflict with:', parent, 'for:', me)
}

// If our update gets prevented, ensure that the next parent updateDepth
// includes our own updateDepth
if (parent.updateDepth !== -1) {
if (me.updateDepth === -1) {
parent.updateDepth = -1
} else {
// Since updateDepth is 1-based, we need to subtract 1 level
parent.updateDepth = parent.updateDepth + distance + me.updateDepth -1
}
}

NeoArray.add(parent.childUpdateCache, me.id);

// Adding the resolve fn to its own cache, since the parent will trigger
Expand Down

0 comments on commit 9085a1a

Please sign in to comment.