Skip to content

Commit 484e361

Browse files
MKirovaMKirova
authored andcommitted
Clear filter when dimension is removed.
1 parent 85501d1 commit 484e361

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

projects/igniteui-angular/src/lib/grids/pivot-grid/pivot-header-row.component.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,15 @@ export class IgxPivotHeaderRowComponent extends IgxGridHeaderRowComponent {
5050
public rowRemoved(event: IBaseChipEventArgs) {
5151
const row = this.grid.pivotConfiguration.rows.find(x => x.fieldName === event.owner.id);
5252
row.enabled = false;
53+
this.grid.filteringService.clearFilter(row.fieldName);
5354
this.grid.pipeTrigger++;
5455
}
5556

5657
public columnRemoved(event: IBaseChipEventArgs) {
5758
const col = this.grid.pivotConfiguration.columns.find(x => x.fieldName === event.owner.id);
5859
col.enabled = false;
5960
this.grid.setupColumns();
61+
this.grid.filteringService.clearFilter(col.fieldName);
6062
this.grid.pipeTrigger++;
6163
}
6264

@@ -70,6 +72,8 @@ export class IgxPivotHeaderRowComponent extends IgxGridHeaderRowComponent {
7072
public filterRemoved(event: IBaseChipEventArgs) {
7173
const filter = this.grid.pivotConfiguration.filters.find(x => x.fieldName === event.owner.id);
7274
filter.enabled = false;
75+
this.grid.filteringService.clearFilter(filter.fieldName);
76+
this.grid.pipeTrigger++;
7377
}
7478

7579
public onFilteringIconPointerDown(event) {

0 commit comments

Comments
 (0)