Skip to content

Commit ef50acf

Browse files
committed
fix(esf): add empty filter if no filter is applied
1 parent d537904 commit ef50acf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

projects/igniteui-angular/src/lib/grids/filtering/grid-filtering.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,8 @@ export class IgxFilteringService implements OnDestroy {
292292
this.clear_filter(field);
293293

294294
// Wait for the change detection to update filtered data through the pipes and then emit the event.
295-
requestAnimationFrame(() => this.grid.filteringDone.emit(null));
295+
const emptyFilter = new FilteringExpressionsTree(null, field);
296+
requestAnimationFrame(() => this.grid.filteringDone.emit(emptyFilter));
296297

297298
if (field) {
298299
const expressions = this.getExpressions(field);

0 commit comments

Comments
 (0)