Description
When clicking on the filter chip in a grid, sometimes nothing happens until I move the mouse a bit.
I think that at the end of onChipClicked there needs to be a this.filteringService.grid.notifyChanges() so that change detection runs.
|
public onChipClicked(expression?: IFilteringExpression) { |
|
if (expression) { |
|
this.expressionsList.forEach((item) => { |
|
item.isSelected = (item.expression === expression); |
|
}); |
|
} else if (this.expressionsList.length > 0) { |
|
this.expressionsList.forEach((item) => { |
|
item.isSelected = false; |
|
}); |
|
this.expressionsList[0].isSelected = true; |
|
} |
|
this.filteringService.grid.navigation.performHorizontalScrollToCell(this.column.visibleIndex); |
|
this.filteringService.filteredColumn = this.column; |
|
this.filteringService.isFilterRowVisible = true; |
|
this.filteringService.selectedExpression = expression; |
|
} |
- igniteui-angular version: 21.0.10
Description
When clicking on the filter chip in a grid, sometimes nothing happens until I move the mouse a bit.
I think that at the end of
onChipClickedthere needs to be athis.filteringService.grid.notifyChanges()so that change detection runs.igniteui-angular/projects/igniteui-angular/grids/core/src/filtering/base/grid-filtering-cell.component.ts
Lines 145 to 160 in b3fb7ad