diff --git a/src/components/datatable/DataTable.vue b/src/components/datatable/DataTable.vue index 5d1371a4d..3261d25a3 100755 --- a/src/components/datatable/DataTable.vue +++ b/src/components/datatable/DataTable.vue @@ -1254,7 +1254,7 @@ export default { let dragIndex = DomHandler.index(this.draggedColumn); let dropIndex = DomHandler.index(this.findParentHeader(event.target)); let allowDrop = (dragIndex !== dropIndex); - if (allowDrop && ((dropIndex - dragIndex === 1 && this.dropPosition === -1) || (dragIndex - dropIndex === 1 && this.dropPosition === 1))) { + if (allowDrop && ((dropIndex - dragIndex === 1 && this.dropPosition === -1) || (dropIndex - dragIndex === -1 && this.dropPosition === 1))) { allowDrop = false; }