Skip to content

Commit

Permalink
Merge pull request #20 from megawac/patch-1
Browse files Browse the repository at this point in the history
Pass event down to onChange
  • Loading branch information
cheton authored Jul 18, 2016
2 parents 6457f7a + 450b6d4 commit 432308e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ module.exports = class extends React.Component {
evt.item.parentNode.removeChild(evt.item);
}

remote.props.onChange && remote.props.onChange(remoteItems, remote.sortable);
remote.props.onChange && remote.props.onChange(remoteItems, remote.sortable, evt);
}

this.props.onChange && this.props.onChange(items, this.sortable);
this.props.onChange && this.props.onChange(items, this.sortable, evt);
}

setTimeout(() => {
Expand Down

0 comments on commit 432308e

Please sign in to comment.