mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 17:02:38 +00:00
Fixed #4982 - Datatable rowGroupMode: columns can't be hidden with setting hidden = true
This commit is contained in:
parent
0c37d48b37
commit
fdf205d0d0
1 changed files with 4 additions and 2 deletions
|
@ -310,7 +310,9 @@ export default {
|
|||
});
|
||||
},
|
||||
shouldRenderBodyCell(column) {
|
||||
if (this.rowGroupMode) {
|
||||
const isHidden = this.columnProp(column, 'hidden');
|
||||
|
||||
if (this.rowGroupMode && !isHidden) {
|
||||
const field = this.columnProp(column, 'field');
|
||||
|
||||
if (this.rowGroupMode === 'subheader') {
|
||||
|
@ -332,7 +334,7 @@ export default {
|
|||
}
|
||||
}
|
||||
} else {
|
||||
return !this.columnProp(column, 'hidden');
|
||||
return !isHidden;
|
||||
}
|
||||
},
|
||||
calculateRowGroupSize(column) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue