Skip to content

Commit

Permalink
Bugfix; prevent width and height from leaking and being written to DOM
Browse files Browse the repository at this point in the history
  • Loading branch information
STRML committed Apr 8, 2016
1 parent 83a4376 commit 5da49c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Resizable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion lib/ResizableBox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<Resizable
handleSize={handleSize}
Expand Down

0 comments on commit 5da49c6

Please sign in to comment.