File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
projects/igniteui-angular/src/lib/grids/filtering Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -748,12 +748,13 @@ export class IgxGridFilteringRowComponent implements AfterViewInit {
748748 }
749749
750750 private scrollChipsOnRemove ( ) {
751- let count = - 1 ;
751+ let count = 0 ;
752752 const chipAraeChildren = this . chipsArea . element . nativeElement . children ;
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 ) ) {
756+ if ( Math . ceil ( chipAraeChildren [ index ] . getBoundingClientRect ( ) . left ) < Math . ceil ( containerRect . left ) &&
757+ Math . ceil ( chipAraeChildren [ index ] . getBoundingClientRect ( ) . right ) < Math . ceil ( containerRect . left ) ) {
757758 count ++ ;
758759 }
759760 }
You can’t perform that action at this time.
0 commit comments