Skip to content

Commit 93a692e

Browse files
committed
Merge pull request mjsarfatti#52 from vcarel/master
Fix isAllowed call (current item instead of placeholder)
2 parents 552453c + 28fc2a0 commit 93a692e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

jquery.mjs.nestedSortable.js

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

0 commit comments

Comments
 (0)