Skip to content

Commit 998a249

Browse files
author
Claudéric Demers
authored
tweak: cancel is already bound to current execution context
1 parent f579e24 commit 998a249

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SortableContainer/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export default function SortableContainer(WrappedComponent, config = {withRef: f
138138

139139
if (!distance) {
140140
clearTimeout(this.cancelTimer);
141-
this.cancelTimer = setTimeout(() => this.cancel(), 0);
141+
this.cancelTimer = setTimeout(this.cancel, 0);
142142
} else if (delta >= distance) {
143143
this.handlePress(e);
144144
}

0 commit comments

Comments
 (0)