We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90b7bbe commit bc11f13Copy full SHA for bc11f13
src/index.js
@@ -315,7 +315,7 @@ class SortablePane extends Component {
315
lastPressed: pos,
316
});
317
this.props.children[pos].props.onDragStart();
318
- this.props.onDragStart(pos);
+ this.props.onDragStart(this.props.children[pos].props.id);
319
}
320
321
handleMouseMove({ pageX, pageY }) {
@@ -345,7 +345,8 @@ class SortablePane extends Component {
345
handleMouseUp() {
346
this.setState({ isPressed: false, delta: 0 });
347
this.props.children[this.state.lastPressed].props.onDragEnd();
348
- this.props.onDragEnd(this.state.lastPressed);
+ const lastPressedId = this.props.children[this.state.lastPressed].props.id;
349
+ this.props.onDragEnd(lastPressedId);
350
351
352
renderPanes() {
0 commit comments