Skip to content

Commit a3e5335

Browse files
authored
List Demo: fix drag&drop behavior (jQuery) (DevExpress#30262)
1 parent e2763c8 commit a3e5335

File tree

1 file changed

+2
-1
lines changed
  • apps/demos/Demos/List/DragAndDrop/jQuery

1 file changed

+2
-1
lines changed

apps/demos/Demos/List/DragAndDrop/jQuery/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ $(() => {
2121
onReorder({
2222
fromIndex, toIndex, fromData, component,
2323
}) {
24-
[fromData[fromIndex], fromData[toIndex]] = [fromData[toIndex], fromData[fromIndex]];
24+
const item = fromData.splice(fromIndex, 1)[0];
25+
fromData.splice(toIndex, 0, item);
2526
component.reload();
2627
},
2728
},

0 commit comments

Comments
 (0)