mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 17:02:38 +00:00
Fixed #4957 - Datatable: stripedRows do not work correctly with virtual scroll
This commit is contained in:
parent
f06c2ea23a
commit
ad98b8f795
2 changed files with 5 additions and 2 deletions
|
@ -33,6 +33,7 @@
|
|||
@dragend="onRowDragEnd"
|
||||
@drop="onRowDrop"
|
||||
v-bind="getBodyRowPTOptions('bodyRow')"
|
||||
:data-p-index="rowIndex"
|
||||
:data-p-selectable-row="selectionMode ? true : false"
|
||||
:data-p-highlight="selection && isSelected"
|
||||
:data-p-highlight-contextmenu="contextMenuSelection && isSelectedWithContextMenu"
|
||||
|
@ -482,7 +483,7 @@ export default {
|
|||
}
|
||||
}
|
||||
|
||||
return [this.cx('row', { rowData: this.rowData }), rowStyleClass];
|
||||
return [this.cx('row', { rowData: this.rowData, index: this.rowIndex }), rowStyleClass];
|
||||
},
|
||||
rowTabindex() {
|
||||
if (this.selection === null && (this.selectionMode === 'single' || this.selectionMode === 'multiple')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue