Fixed #5196 - DataTable: Row selection styling defect

pull/5206/head
tugcekucukoglu 2024-02-02 22:54:51 +03:00
parent 0575260911
commit 3a89a10fd5
1 changed files with 2 additions and 1 deletions

View File

@ -358,8 +358,9 @@ const classes = {
}
if (props.selection) {
console.log(props.selectionMode);
rowStyleClass.push({
'p-highlight': instance.isSelected && instance.$parentInstance.$parentInstance.highlightOnSelect
'p-highlight': props.selectionMode === 'multiple' || props.selectionMode === 'single' ? instance.isSelected : instance.isSelected && instance.$parentInstance.$parentInstance.highlightOnSelect
});
}