diff --git a/src/modules/infinite-scroll.directive.ts b/src/modules/infinite-scroll.directive.ts index 0cea3867..14dd9ac2 100644 --- a/src/modules/infinite-scroll.directive.ts +++ b/src/modules/infinite-scroll.directive.ts @@ -43,8 +43,8 @@ export class InfiniteScrollDirective this.setup(); } - ngOnChanges({ infiniteScrollContainer }: SimpleChanges) { - if (inputPropChanged(infiniteScrollContainer)) { + ngOnChanges({ infiniteScrollContainer, infiniteScrollDisabled }: SimpleChanges) { + if (inputPropChanged(infiniteScrollContainer) || inputPropChanged(infiniteScrollDisabled)) { this.destroyScroller(); this.setup(); }