Skip to content

Commit

Permalink
Merge pull request #37 from antal-bukos/add-drag-finished-event
Browse files Browse the repository at this point in the history
Add onDragFinished property
  • Loading branch information
tomkp committed Jan 19, 2016
2 parents e13ceb9 + d2dfa7f commit 3983035
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/SplitPane.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,14 @@ export default React.createClass({


onMouseUp() {
this.setState({
active: false
});
if (this.state.active) {
if (this.props.onDragFinished) {
this.props.onDragFinished();
}
this.setState({
active: false
});
}
},


Expand Down

0 comments on commit 3983035

Please sign in to comment.