Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
fix: (datagrid) filtering not working well with Ivy off (backport)
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Donchev <[email protected]>
  • Loading branch information
Jinnie committed Oct 14, 2020
1 parent 8baebb2 commit d6eafc7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/clr-angular/data/datagrid/datagrid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,13 @@ export class ClrDatagrid<T = any> implements AfterContentInit, AfterViewInit, On
if (!this.items.smart) {
this.items.all = this.rows.map((row: ClrDatagridRow<T>) => row.item);
}
// Remove any projected rows from the displayedRows container
// Necessary with Ivy off. See https://github.com/vmware/clarity/issues/4692
for (let i = this._displayedRows.length - 1; i >= 0; i--) {
if (this._displayedRows.get(i).destroyed) {
this._displayedRows.remove(i);
}
}
this.rows.forEach(row => {
this._displayedRows.insert(row._view);
});
Expand Down

0 comments on commit d6eafc7

Please sign in to comment.