Skip to content

Commit 0f0d3f2

Browse files
stofbinyaminAtStampli
authored andcommitted
docs: adds true and void return values to options.onMove (SortableJS#1878)
The doc was missing the case of keeping the default insertion point based on the direction.
1 parent 4e92b33 commit 0f0d3f2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,8 @@ var sortable = new Sortable(el, {
220220
// return false; — for cancel
221221
// return -1; — insert before target
222222
// return 1; — insert after target
223+
// return true; — keep default insertion point based on the direction
224+
// return void; — keep default insertion point based on the direction
223225
},
224226

225227
// Called when creating a clone of element

0 commit comments

Comments
 (0)