Skip to content

Commit

Permalink
props update fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolas committed May 23, 2018
1 parent 5127dfe commit 0084355
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/ReactGridLayout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,13 @@ export default class ReactGridLayout extends React.Component<Props, State> {
processGridItem(child: ReactElement<any>): ?ReactElement<any> {
if (!child || !child.key) return;
const l = getLayoutItem(this.state.layout, String(child.key));
if (!l) return null;
if (!l) return null;
if (child.props['data-grid']) {
 l.h = child.props['data-grid'].h;
 l.w = child.props['data-grid'].w;
 l.x = child.props['data-grid'].x;
l.y = child.props['data-grid'].y;
}
const {
width,
cols,
Expand Down

0 comments on commit 0084355

Please sign in to comment.