Skip to content

Commit c1d6a86

Browse files
committed
fix isAllowed custom function and readme
1 parent 6be06e4 commit c1d6a86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery.mjs.nestedSortable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@
401401
// Is the root protected?
402402
// Are we trying to nest under a no-nest?
403403
// Are we nesting too deep?
404-
if (!o.isAllowed(parentItem, this.placeholder) ||
404+
if (!o.isAllowed(this.placeholder, parentItem) ||
405405
parentItem && parentItem.hasClass(o.disableNesting) ||
406406
o.protectRoot && (parentItem == null && !isRoot || isRoot && level > 1)) {
407407
this.placeholder.addClass(o.errorClass);

0 commit comments

Comments
 (0)