mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 09:22:34 +00:00
Fix #3443: Datatable: RowReorder fails in case of pagination on page other than first & last
This commit is contained in:
parent
ab885948c5
commit
7289eb8323
2 changed files with 3 additions and 8 deletions
|
@ -1685,7 +1685,7 @@ export default {
|
|||
let dropIndex = this.draggedRowIndex > this.droppedRowIndex ? this.droppedRowIndex : this.droppedRowIndex === 0 ? 0 : this.droppedRowIndex - 1;
|
||||
let processedData = [...this.processedData];
|
||||
|
||||
ObjectUtils.reorderArray(processedData, this.draggedRowIndex, dropIndex);
|
||||
ObjectUtils.reorderArray(processedData, this.draggedRowIndex + this.d_first, dropIndex + this.d_first);
|
||||
|
||||
this.$emit('row-reorder', {
|
||||
originalEvent: event,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue