Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changes to accessibility on destroyScroller and setup #443

Open
curtiskeller opened this issue Sep 17, 2024 · 0 comments
Open

changes to accessibility on destroyScroller and setup #443

curtiskeller opened this issue Sep 17, 2024 · 0 comments

Comments

@curtiskeller
Copy link

curtiskeller commented Sep 17, 2024

Hi,

We were using the destroyScroller and setup methods to reset the scroller based on external factors. Is there a new method to call to reset the scroller in a similar manner?

@ViewChild('scrollerRef', { static: true, read: InfiniteScrollDirective }) private _infiniteScrollDirective!: InfiniteScrollDirective;


  private resetScroller() {
    this._infiniteScrollDirective.destroyScroller();
    this._infiniteScrollDirective.setup();
    this._scrollerRefEl.nativeElement.scrollTop = 0;
  }

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant