Skip to content

Commit 5c5edd9

Browse files
author
Matt Parnell
committed
Merge pull request ilikenwf#40 from cameronprattedwards/fix/protectroot-logic
Fix protectRoot logic
2 parents 5a8e1fe + 998bd41 commit 5c5edd9

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
@@ -469,7 +469,7 @@
469469
// but only if it's at the bottom of the list
470470
if (parentItem != null &&
471471
nextItem == null &&
472-
o.protectRoot && parentItem[0].parentNode !== this.element[0] &&
472+
!(o.protectRoot && parentItem[0].parentNode == this.element[0]) &&
473473
(
474474
o.rtl &&
475475
(

0 commit comments

Comments
 (0)