Skip to content

Commit ca9ed01

Browse files
authored
Merge pull request #41 from ModusCreateOrg/drag-n-drop-2
DND - change onDragEnd to handleDragEnd
2 parents 16512fe + 194bdb5 commit ca9ed01

File tree

1 file changed

+2
-2
lines changed
  • 31-drag-and-drop/a-drag-and-drop/src

1 file changed

+2
-2
lines changed

31-drag-and-drop/a-drag-and-drop/src/App.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class App extends Component {
2626
}]
2727
}
2828

29-
onDragEnd = (result) => {
29+
handleDragEnd = (result) => {
3030
// dropped outside the list
3131
if(!result.destination) {
3232
return;
@@ -45,7 +45,7 @@ class App extends Component {
4545

4646
render() {
4747
return (
48-
<DragDropContext onDragEnd={this.onDragEnd}>
48+
<DragDropContext onDragEnd={this.handleDragEnd}>
4949
<Droppable droppableId="droppable">
5050
{(provided, { isDraggingOver }) => (
5151
<div

0 commit comments

Comments
 (0)