Skip to content

Commit c78fb4f

Browse files
author
Grigory Bogush
authored
fixed propagtation (#667)
1 parent 0116d92 commit c78fb4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ export class Rnd extends React.PureComponent<Props, State> {
346346
onDrag(e: RndDragEvent, data: DraggableData) {
347347
if (this.props.onDrag) {
348348
const offset = this.offsetFromParent;
349-
this.props.onDrag(e, { ...data, x: data.x - offset.left, y: data.y - offset.top });
349+
return this.props.onDrag(e, { ...data, x: data.x - offset.left, y: data.y - offset.top });
350350
}
351351
}
352352

0 commit comments

Comments
 (0)