From d2dfa7fd566821ecd59bf7e4905b3346bef87893 Mon Sep 17 00:00:00 2001 From: antal-bukos Date: Wed, 6 Jan 2016 15:25:32 +0200 Subject: [PATCH] Add onDragFinished property --- src/SplitPane.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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 + }); + } },