We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1bb468 commit e872506Copy full SHA for e872506
projects/igniteui-angular/src/lib/grids/pivot-grid/pivot-grid.component.ts
@@ -203,7 +203,7 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni
203
const fieldColumn = parentCols.filter(x => x.header === col.header && !x.columnGroup)[0];
204
const groupColumn = parentCols.filter(x => x.header === col.header && x.columnGroup)[0];
205
groupColumn.hidden = newState;
206
- if (!groupColumn.hidden) {
+ if (!groupColumn.hidden && groupColumn.children.length > 1) {
207
// column group when shown displays all children, we want to show only groups
208
const fieldChildren = groupColumn.children.filter(x => !x.columnGroup);
209
fieldChildren.forEach(fieldChild => {
0 commit comments