Skip to content

Commit 1bbc818

Browse files
authored
Merge pull request #137 from HermesSbicego-Laser/patch-1
Adds dragDirection object required by jQueryUI 1.13+
2 parents 98c07f8 + 4e1f9a5 commit 1bbc818

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

jquery.mjs.nestedSortable.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,12 @@
262262
childLevels = this._getChildLevels(this.helper);
263263
newList = document.createElement(o.listType);
264264

265+
// dragDirection object is required by jquery.ui.sortable.js 1.13+
266+
this.dragDirection = {
267+
vertical: this._getDragVerticalDirection(),
268+
horizontal: this._getDragHorizontalDirection()
269+
};
270+
265271
//Rearrange
266272
for (i = this.items.length - 1; i >= 0; i--) {
267273

0 commit comments

Comments
 (0)