Skip to content

Commit 1029d5c

Browse files
committed
Update initialWidth/Height when props change.
1 parent 799d7a8 commit 1029d5c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Resizable.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ export default class Resizable extends React.Component {
8484
this.setState({
8585
width: nextProps.width,
8686
height: nextProps.height,
87+
initialWidth: nextProps.width,
88+
initialHeight: nextProps.height
8789
});
8890
}
8991
}

0 commit comments

Comments
 (0)