diff --git a/src/SplitPane.js b/src/SplitPane.js index 5929dd48..0194fe59 100644 --- a/src/SplitPane.js +++ b/src/SplitPane.js @@ -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 + }); + } },