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

Fires Permanently (& Causes to Reload Models Within) #366

Open
360disrupt opened this issue Aug 15, 2017 · 2 comments
Open

Fires Permanently (& Causes to Reload Models Within) #366

360disrupt opened this issue Aug 15, 2017 · 2 comments

Comments

@360disrupt
Copy link

If the scroll distance is reached, infinite scrolls fires permanently. In my case when loading the page when the user has access to a small data set. Expected behavior would be to only fire if scrolled & reached the end of the page.

I have a ng-repeat with a filter inside of infinite-scroll, this filter is called permanently, even though I'm not reloading any new data.

        <div class="table-responsive">
        <table class="table table-hover" infinite-scroll="manageTransitionsController.addMorePatients()" infinite-scroll-distance="1">
          <thead>
            <tr class="active">
            </tr>
          </thead>
          <tbody>
            <tr ng-repeat="patient in manageTransitionsController.patients | filter: manageTransitionsController.transitionHasRole">
            </tr>
          </tbody>
        </table>
        </div>
    @.addMorePatients = () ->
      return null
@claudiaerp
Copy link

@360disrupt Were you able to fix this issue?

@360disrupt
Copy link
Author

@claudiaerp No, I didn't find time for it.

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

2 participants