ionic-framework
ionic-framework copied to clipboard
bug: Bug - InfiniteScroll broken in native scroll
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.
Thanks!