8000 Merge pull request #121 from andrewvmail/fix-onMove · dasveloper/react-sortablejs@722c179 · GitHub
[go: up one dir, main page]

Skip to content

Commit 722c179

Browse files
authored
Merge pull request SortableJS#121 from andrewvmail/fix-onMove
[bugfix] allow onMove callback to return false closes SortableJS#120
2 parents 8e0e2dd + b84a934 commit 722c179

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/react-sortable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
175175
const { onMove } = this.props;
176176
const defaultValue = evt.willInsertAfter || -1;
177177
if (!onMove) return defaultValue;
178-
return onMove(evt, originalEvt, this.sortable, store) || defaultValue;
178+
return onMove(evt, originalEvt, this.sortable, store);
179179
};
180180

181181
return {

0 commit comments

Comments
 (0)
0