Fixed #4982 - Datatable rowGroupMode: columns can't be hidden with setting hidden = true

pull/4992/head
mertsincan 2023-12-21 00:23:27 +00:00
parent 0c37d48b37
commit fdf205d0d0
1 changed files with 4 additions and 2 deletions

View File

@ -310,7 +310,9 @@ export default {
}); });
}, },
shouldRenderBodyCell(column) { shouldRenderBodyCell(column) {
if (this.rowGroupMode) { const isHidden = this.columnProp(column, 'hidden');
if (this.rowGroupMode && !isHidden) {
const field = this.columnProp(column, 'field'); const field = this.columnProp(column, 'field');
if (this.rowGroupMode === 'subheader') { if (this.rowGroupMode === 'subheader') {
@ -332,7 +334,7 @@ export default {
} }
} }
} else { } else {
return !this.columnProp(column, 'hidden'); return !isHidden;
} }
}, },
calculateRowGroupSize(column) { calculateRowGroupSize(column) {