Skip to content

Commit

Permalink
withDraggable's event handlers take control
Browse files Browse the repository at this point in the history
To avoid withDraggable's event handlers to be shadowed by the children props
we need to make sure they are passed at the end.
  • Loading branch information
oandregal committed Aug 29, 2018
1 parent f533772 commit 6e4fd6f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ const withDraggable = createHigherOrderComponent(
render() {
return (
<OriginalComponent
{ ...this.props }
onDragStart={ this.onDragStart }
onDragOver={ this.onDragOver }
onDragEnd={ this.onDragEnd }
{ ...this.props }
/>
);
}
Expand Down

0 comments on commit 6e4fd6f

Please sign in to comment.