Skip to content

Commit 0aa4db5

Browse files
committed
fix(filtering): Fix error when delete last filter chip #5304
1 parent ef612cd commit 0aa4db5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -753,8 +753,7 @@ export class IgxGridFilteringRowComponent implements AfterViewInit {
753753
const containerRect = this.container.nativeElement.getBoundingClientRect();
754754

755755
for (let index = 0; index < chipAraeChildren.length; index++) {
756-
if (Math.ceil(chipAraeChildren[index].getBoundingClientRect().left) < Math.ceil(containerRect.left) &&
757-
Math.ceil(chipAraeChildren[index].getBoundingClientRect().right) < Math.ceil(containerRect.left)) {
756+
if (Math.ceil(chipAraeChildren[index].getBoundingClientRect().right) < Math.ceil(containerRect.left)) {
758757
count++;
759758
}
760759
}

0 commit comments

Comments
 (0)