diff --git a/components/lib/datatable/TableBody.js b/components/lib/datatable/TableBody.js index e048746fbe..368d38effd 100644 --- a/components/lib/datatable/TableBody.js +++ b/components/lib/datatable/TableBody.js @@ -710,7 +710,7 @@ export const TableBody = React.memo( !isUnstyled() && DomHandler.addClass(rowElement, 'p-datatable-dragpoint-top'); } - droppedRowIndex.current = index + 1; + if (index + 1 !== draggedRowIndex.current) droppedRowIndex.current = index + 1; rowElement.setAttribute('data-p-datatable-dragpoint-bottom', 'true'); !isUnstyled() && DomHandler.addClass(rowElement, 'p-datatable-dragpoint-bottom'); }