-
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
bug: TypeError: Cannot read property 'direction' of null #5737
Comments
Good catch! This issue helped expose some problems with how we were generating navigation opts objects when the argument was missing, or it had an undefined or null value. Should be fixed in the next release, thanks for the help! |
Wow, that was fast. Thanks for the reply and the quick fix! Looking forward to the next release. |
Hi, Im having a very similar problem even after upgrading to latest ionic version. In my case, when I try to do this.viewCtrl.dismiss(), im getting Cannot read property 'removeEventListener' of null. That is, when I have an ion-infinite-scroll on the page. I have tried using this.nav.pop() and this.nav.popToRoot() and still get the same issue. Any suggestions? |
@cperez1087 This is a known issue and will be fixed in |
Short description of the problem:
The following exception is thrown when using the
ViewController.dismiss()
method:TypeError: Cannot read property 'direction' of null
What behavior are you expecting?
I'm expecting that
ViewController.dismiss()
should be working similar toNavController.pop()
, although I'm using Ionic for only 1 week and maybe I'm missing something or using something incorrectly.Steps to reproduce:
HomePage
, bound toHomePage.profile()
.ProfilePage
, bound toProfilePage.logout()
.Code:
Ionic Version: 2.x
Browser & Operating System: Chrome (Windows 8.1 64-bit)
Run
ionic info
from terminal/cmd prompt:The text was updated successfully, but these errors were encountered: