Skip to content

Commit 8ed9515

Browse files
authored
Merge pull request #4179 from Laravel-Backpack/fix-reorder-operation-nested-sortable
fix #4175 - nestedSortable was not working with jQuery UI 1.13+
2 parents c14eaca + 3a1a63c commit 8ed9515

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/public/packages/nestedSortable/jquery.mjs.nestedSortable2.js

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

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

0 commit comments

Comments
 (0)