Merge pull request #6424 from philipstarkey/philipstarkey/fix-6014

fix DataTable: Allow drop below bottom row
pull/6471/head
Tuğçe Küçükoğlu 2024-09-24 15:52:28 +03:00 committed by GitHub
commit 94a54fce68
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -296,7 +296,6 @@ import {
getOffset,
getOuterHeight,
getOuterWidth,
getWindowScrollTop,
isClickable,
removeClass,
setAttribute
@ -1533,7 +1532,7 @@ export default {
if (this.rowDragging && this.draggedRowIndex !== index) {
let rowElement = event.currentTarget;
let rowY = getOffset(rowElement).top + getWindowScrollTop();
let rowY = getOffset(rowElement).top;
let pageY = event.pageY;
let rowMidY = rowY + getOuterHeight(rowElement) / 2;
let prevRowElement = rowElement.previousElementSibling;