From 0d2fe6c797644bd2d5c340b85dcbd2e9efac4c10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Thu, 2 Jun 2022 11:10:32 +0300 Subject: [PATCH] Fixed #2225 - [BUG] DataTable column reorder in wrong order --- src/components/datatable/DataTable.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/datatable/DataTable.vue b/src/components/datatable/DataTable.vue index 5d1371a4d..8ead671c4 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 && ((dragIndex - dropIndex === 1 && this.dropPosition === -1) || (dropIndex - dragIndex === 1 && this.dropPosition === 1))) { allowDrop = false; }