ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

bug: Bug - InfiniteScroll broken in native scroll

Open melnikov77 opened this issue 11 years ago • 1 comments

Type: bug

Platform: all

After updating to rc5 the InfiniteScroll get broken if is used in native scroll. Here is error: TypeError: Cannot read property '__container' of undefined at ionic.bundle.js:47148 at ionic.bundle.js:24859 at completeOutstandingRequest (ionic.bundle.js:13541) at ionic.bundle.js:13921

The problem is in the commit "fix(infiniteScroll): prevent checkbounds when infinitescroll completes when page is cached. Fixes #2694".

  •  self.checkBounds();
    
  •  // only check bounds again immediately if the page isn't cached (scroll el has height)
    
  •  if (self.scrollView.__container && self.scrollView.__container.offsetHeight > 0) {
    
  •    self.checkBounds();
    
  •  }
    

In native scroll mode the scrollView is undefined.

melnikov77 avatar May 08 '15 06:05 melnikov77

Thanks!

perrygovier avatar May 08 '15 15:05 perrygovier