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 6be06e4 commit c1d6a86Copy full SHA for c1d6a86
jquery.mjs.nestedSortable.js
@@ -401,7 +401,7 @@
401
// Is the root protected?
402
// Are we trying to nest under a no-nest?
403
// Are we nesting too deep?
404
- if (!o.isAllowed(parentItem, this.placeholder) ||
+ if (!o.isAllowed(this.placeholder, parentItem) ||
405
parentItem && parentItem.hasClass(o.disableNesting) ||
406
o.protectRoot && (parentItem == null && !isRoot || isRoot && level > 1)) {
407
this.placeholder.addClass(o.errorClass);
0 commit comments