Clear parent when merging default grid
CodeQL checks / Detect whether code changed (push) Waiting to run Details
CodeQL checks / Analyze (actions) (push) Blocked by required conditions Details
CodeQL checks / Analyze (go) (push) Blocked by required conditions Details
CodeQL checks / Analyze (javascript) (push) Blocked by required conditions Details

This commit is contained in:
oscarkilhed 2025-10-07 14:57:05 +02:00
parent 6c588365ea
commit 0115831454
1 changed files with 3 additions and 0 deletions

View File

@ -116,6 +116,9 @@ export class DefaultGridLayoutManager
// Remove from source and append to destination
sourceGrid.setState({ children: [] });
for (const child of movedChildren) {
child.clearParent();
}
this.state.grid.setState({ children: [...this.state.grid.state.children, ...movedChildren] });
}