Refactor #2225
parent
0d2fe6c797
commit
855d63a554
|
@ -1254,7 +1254,7 @@ export default {
|
||||||
let dragIndex = DomHandler.index(this.draggedColumn);
|
let dragIndex = DomHandler.index(this.draggedColumn);
|
||||||
let dropIndex = DomHandler.index(this.findParentHeader(event.target));
|
let dropIndex = DomHandler.index(this.findParentHeader(event.target));
|
||||||
let allowDrop = (dragIndex !== dropIndex);
|
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;
|
allowDrop = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue