Skip to content

Commit af3d6b6

Browse files
authored
use node instead element because it is specified as node in ResizeCallbackData type definition (#214)
1 parent e3b20d7 commit af3d6b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class Example extends React.Component {
4949
};
5050

5151
// On top layout
52-
onResize = (event, {element, size, handle}) => {
52+
onResize = (event, {node, size, handle}) => {
5353
this.setState({width: size.width, height: size.height});
5454
};
5555

0 commit comments

Comments
 (0)