Skip to content

Commit 925bcc4

Browse files
MKirovaMKirova
authored andcommitted
fix(igxGrid): Make throttle emit last value as well.
1 parent 9cff4df commit 925bcc4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

projects/igniteui-angular/src/lib/directives/for-of/for_of.directive.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,8 @@ export class IgxForOfDirective<T> implements OnInit, OnChanges, DoCheck, OnDestr
404404
});
405405
const destructor = takeUntil<any>(this.destroy$);
406406
this.contentResizeNotify.pipe(destructor,
407-
filter(() => this.igxForContainerSize && this.igxForOf && this.igxForOf.length > 0), throttleTime(40))
407+
filter(() => this.igxForContainerSize && this.igxForOf && this.igxForOf.length > 0),
408+
throttleTime(40, undefined, {leading: true, trailing: true}))
408409
.subscribe(() => {
409410
this._zone.runTask(() => {
410411
this.updateSizes();

0 commit comments

Comments
 (0)