Skip to content

Commit ae8b049

Browse files
authored
Merge pull request #6441 from IgniteUI/set-scrollAmount-value-82x
Set value to scrollComponent scrollAmount property - 82x
2 parents b4a0296 + 78254c8 commit ae8b049

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
@@ -1177,6 +1177,9 @@ export class IgxForOfDirective<T> implements OnInit, OnChanges, DoCheck, OnDestr
11771177
this.scrollComponent.size = this._calcHeight();
11781178
if ( this.scrollComponent.size <= parseInt(this.igxForContainerSize, 10)) {
11791179
this.scrollPosition = 0;
1180+
// Need to reset the scrollAmount value here, because
1181+
// Firefox will not fire the scrollComponent scroll event handler
1182+
this.scrollComponent.scrollAmount = 0;
11801183
}
11811184
}
11821185
if (scrollable !== this.isScrollable()) {

0 commit comments

Comments
 (0)