Skip to content

Commit 01e0ba3

Browse files
authored
Merge pull request #2 from thePrincipal/feature/Issue-347
Add fix for null itemScope
2 parents 4d522a9 + 554a2b5 commit 01e0ba3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/sortable-helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@
226226
targetElementOffset: null,
227227
sourceInfo: {
228228
index: item.index(),
229-
itemScope: item.itemScope,
229+
itemScope: ( item.itemScope || item ),
230230
sortableScope: item.sortableScope
231231
},
232232
canMove: function(itemPosition, targetElement, targetElementOffset) {

0 commit comments

Comments
 (0)