Skip to content

Commit

Permalink
use node instead element because it is specified as node in ResizeCal…
Browse files Browse the repository at this point in the history
…lbackData type definition (react-grid-layout#214)
  • Loading branch information
ardaorkin authored Mar 21, 2023
1 parent e3b20d7 commit af3d6b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Example extends React.Component {
};

// On top layout
onResize = (event, {element, size, handle}) => {
onResize = (event, {node, size, handle}) => {
this.setState({width: size.width, height: size.height});
};

Expand Down

0 comments on commit af3d6b6

Please sign in to comment.