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

This commit is contained in:
mertsincan 2023-12-21 00:23:27 +00:00
parent 0c37d48b37
commit fdf205d0d0

View file

@ -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) {