Skip to content

Commit 8ef0a65

Browse files
fix bulk action updates doesn't change all comps height
1 parent 3af570b commit 8ef0a65

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

client/packages/lowcoder/src/layout/gridLayout.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,15 @@ class GridLayout extends React.Component<GridLayoutProps, GridLayoutState> {
400400
// const ops = layoutOpUtils.push(this.state.ops, stickyItemOp(i, { h }));
401401
// this.setState({ ops });
402402
if (this.state.changedHs?.[i] !== h) {
403-
const changedHeights = { ...this.state.changedHs, [i]: h };
404-
this.setState({ changedHs: changedHeights });
403+
this.setState((prevState) => {
404+
return {
405+
...prevState,
406+
changedHs: {
407+
...prevState.changedHs,
408+
[i]: h,
409+
}
410+
}
411+
})
405412
}
406413
};
407414

0 commit comments

Comments
 (0)