Skip to content

Commit

Permalink
Fixed #10246 - Table | global filter doesn't reset on Table.clear()
Browse files Browse the repository at this point in the history
  • Loading branch information
yigitfindikli committed Nov 30, 2021
1 parent abbc414 commit e925fbd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/components/table/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1579,6 +1579,10 @@ export class Table implements OnInit, AfterViewInit, AfterContentInit, Blockable
this._multiSortMeta = null;
this.tableService.onSort(null);

if (this.filters['global']) {
(<FilterMetadata> this.filters['global']).value = null;
}

this.filteredValue = null;
this.tableService.onResetChange();

Expand Down

0 comments on commit e925fbd

Please sign in to comment.