diff --git a/lib/Resizable.jsx b/lib/Resizable.jsx index cad3c4ae..289a3cef 100644 --- a/lib/Resizable.jsx +++ b/lib/Resizable.jsx @@ -162,7 +162,7 @@ export default class Resizable extends React.Component { } render(): React.Element { - let p = this.props; + let {width, height, ...p} = this.props; let className = p.className ? `${p.className} react-resizable`: 'react-resizable'; diff --git a/lib/ResizableBox.jsx b/lib/ResizableBox.jsx index a25b1fe1..4d7f2c5f 100644 --- a/lib/ResizableBox.jsx +++ b/lib/ResizableBox.jsx @@ -36,7 +36,7 @@ export default class ResizableBox extends React.Component { // If you use Resizable directly, you are responsible for updating the child component // with a new width and height. let {handleSize, onResizeStart, onResizeStop, draggableOpts, - minConstraints, maxConstraints, lockAspectRatio, ...props} = this.props; + minConstraints, maxConstraints, lockAspectRatio, width, height, ...props} = this.props; return (