Skip to content

Commit 85f88ac

Browse files
committed
Fix start/stop handlers not being fired due to no h/w change.
1 parent 81d91ba commit 85f88ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Resizable.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export default class Resizable extends React.Component {
116116
let width = this.state.width + deltaX, height = this.state.height + deltaY;
117117

118118
let widthChanged = width !== this.state.width, heightChanged = height !== this.state.height;
119-
if (!widthChanged && !heightChanged) return;
119+
if (handlerName === 'onResize' && !widthChanged && !heightChanged) return;
120120

121121
if (this.props.lockAspectRatio) {
122122
[width, height] = this.lockAspectRatio(width, height, this.state.aspectRatio);

0 commit comments

Comments
 (0)