Skip to content

Commit 07c9533

Browse files
authored
Merge pull request #6440 from IgniteUI/set-scrollAmount-value-master
Set value to scrollComponent scrollAmount property - master
2 parents 12a087a + 097fd6d commit 07c9533

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,6 +1176,9 @@ export class IgxForOfDirective<T> implements OnInit, OnChanges, DoCheck, OnDestr
11761176
this.scrollComponent.size = this._calcHeight();
11771177
if ( this.scrollComponent.size <= parseInt(this.igxForContainerSize, 10)) {
11781178
this.scrollPosition = 0;
1179+
// Need to reset the scrollAmount value here, because
1180+
// Firefox will not fire the scrollComponent scroll event handler
1181+
this.scrollComponent.scrollAmount = 0;
11791182
}
11801183
}
11811184
if (scrollable !== this.isScrollable()) {

0 commit comments

Comments
 (0)