mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-04-23 22:30:37 +00:00
[ACS-9765]: type error fix
This commit is contained in:
@@ -37,7 +37,7 @@ export class InfiniteSelectScrollDirective implements AfterViewInit {
|
||||
|
||||
ngAfterViewInit() {
|
||||
this.matSelect.openedChange.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((opened: boolean) => {
|
||||
if (opened) {
|
||||
if (opened && this.matSelect.panel) {
|
||||
this.itemHeightToWaitBeforeLoadNext = this.getItemHeight() * (InfiniteSelectScrollDirective.MAX_ITEMS / 2);
|
||||
this.matSelect.panel.nativeElement.addEventListener('scroll', (event: Event) => this.handleScrollEvent(event));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user