-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
scrollView is null when switching off of tabs view #2181
Comments
Codepen can be found here: http://codepen.io/anon/pen/ebaLc Just open the side menu and click "Settings". You should end up on the "Account" tab. Click "Settings" again sends you to the right page. |
Also experiencing this bug. |
Realized that the Codepen I provided only shows the second error I reported. First error, although related to scrolling and tabs, seems to be specific to the "ion-infinite-scroll" functionality. This codepen explains the problem a little better: Scroll errors seem to occur:
Hope this helps. |
Check if scrollView is null when switching off of tabs view. #2181
I've made some updates to the nightly build to fix these errors: Would you be able to test out 1.0.0-beta.12-nightly-452 or greater and let me know if it fixes your issue: Additionally, your example helped me find another bug which was hurting performance and not allowing your app to work correctly: Please let me know how its working, and thanks for creating the issue. |
Adam, Oooh. Very nice! Love how elegant your change is. Works perfectly. Thank you so much! |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
I'm running into an issue with today's release of Ionic (1.0.0-beta.12) that I wasn't experiencing with older versions. In my app, when navigating away from a view that has tabs, I've started getting this error show up:
Error: scrollCtrl.$element is null .link/<@lib/ionic/js/ionic.bundle.js:41174 Scope.prototype.$broadcast@lib/ionic/js/ionic.bundle.js:20368 Scope.prototype.$destroy@lib/ionic/js/ionic.bundle.js:20026 updateView@lib/ionic/js/ionic.bundle.js:42420 directive.compile/</eventHook@lib/ionic/js/ionic.bundle.js:42397 Scope.prototype.$broadcast@lib/ionic/js/ionic.bundle.js:20368 $StateProvider/$get/transitionTo/$state.transition<@lib/ionic/js/ionic.bundle.js:33645 qFactory/defer/deferred.promise.then/wrappedCallback@lib/ionic/js/ionic.bundle.js:18979 qFactory/ref/<.then/<@lib/ionic/js/ionic.bundle.js:19065 Scope.prototype.$eval@lib/ionic/js/ionic.bundle.js:20089 Scope.prototype.$digest@lib/ionic/js/ionic.bundle.js:19901 Scope.prototype.$apply@lib/ionic/js/ionic.bundle.js:20193 done@lib/ionic/js/ionic.bundle.js:15805 completeRequest@lib/ionic/js/ionic.bundle.js:16010 createHttpBackend/</xhr.onreadystatechange@lib/ionic/js/ionic.bundle.js:15953
ionic.bundle.js (line 17470)
and then, instead of going to the page I've selected, I'm instead sent to the last tab on my current view. I'm also occasionally getting this error:
Error: scrollView is null @lib/ionic/js/ionic.bundle.js:39362 timeout/timeoutId<@lib/ionic/js/ionic.bundle.js:21691 completeOutstandingRequest@lib/ionic/js/ionic.bundle.js:11901 Browser/self.defer/timeoutId<@lib/ionic/js/ionic.bundle.js:12202
ionic.bundle.js (line 17470)
but can't see yet how this one is triggered, though does seem to be related.
It seems like this is a result of changes implemented due to issue #1993, but I can't be certain. The only change I have in my app from the working version of Ionic I was using (1.0.0-beta.11) to this one was an implementation of the "expose-aside-when" addition to the side menu, but removing that option doesn't seem to solve the errors being thrown.
I'm sure a Codepen can probably explain this much better than I did. I'll work on setting one up.
The text was updated successfully, but these errors were encountered: