Skip to content

Commit 82868f2

Browse files
James Farrellbokuweb
authored andcommitted
Fixes memory leak when using redux #498 (#499)
1 parent 0879024 commit 82868f2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ npm-debug.log
55
.rpt2_cache
66
yarn-error.log
77
docs
8+
.idea/

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ export class Rnd extends React.Component<Props, State> {
336336
onDragStop(e: RndDragEvent, data: DraggableData) {
337337
if (this.props.onDragStop) {
338338
const { left, top } = this.getOffsetFromParent();
339-
this.props.onDragStop(e, { ...data, x: data.x + left, y: data.y + top });
339+
return this.props.onDragStop(e, { ...data, x: data.x + left, y: data.y + top });
340340
}
341341
}
342342

0 commit comments

Comments
 (0)