From 855d63a554c903bcedde9993b72afee4c429530b 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 16:03:39 +0300 Subject: [PATCH] Refactor #2225 --- 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 8ead671c4..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 && ((dragIndex - dropIndex === 1 && this.dropPosition === -1) || (dropIndex - dragIndex === 1 && this.dropPosition === 1))) { + if (allowDrop && ((dropIndex - dragIndex === 1 && this.dropPosition === -1) || (dropIndex - dragIndex === -1 && this.dropPosition === 1))) { allowDrop = false; }