-
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
this.enteringView.pageRef(...) is null #8755
Comments
Hi, Actually it's when a form submission results in an error, and then again submit the same form with right data that is causing a blank page (because of a JavaScript error). |
Hi, Any updates on this issue ? I tried with RC3 but it didn't fix it. |
Still same issue with RC3. When I submit a form, I perform a validation and then I return false to prevent the form to be submitted.
(Chrome debug console). |
Same issue with RC4. Cordova CLI: 6.4.0 Below is my html form :
Below is how I handle an error in login function :
I am returning false in order to avoid the form to be submitted. Is there another way to prevent form submission when there is something wrong ? |
I tried to replace the submit button with a link (as per ng book 2) but it is not working either Old
New
I also tried to remove all the return false (validation or error handling) without success |
I found the problem ! I close this issue. |
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. |
Short description of the problem:
I have a login page with Ionic Segments, one is Sign in, the other one is Create Account (first load of the page is Sign in).
After creating an account, the method is changing the segment to Sign in.
Then if I try to sign in with the created account (or any other), I have a
this.enteringView.pageRef(...) is null
in Firefox console.On IE :
Unable to get property 'nativeElement' of undefined or null reference
What behavior are you expecting?
Expected behaviour is after successfully register to the app and changing to sign in page, user should be able to sign in without an error.
Steps to reproduce:
https://github.com/paoesco/walkingdog/blob/master/walkingdog-mobile/src/pages/login/login.ts
https://github.com/paoesco/walkingdog/blob/master/walkingdog-mobile/src/pages/login/login.html
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
Github repo : https://github.com/paoesco/walkingdog/tree/master/walkingdog-mobile
Which Ionic Version? 1.x or 2.x
2
Run
ionic info
from terminal/cmd prompt: (paste output below)Cordova CLI: 6.3.1
Ionic Framework Version: 2.0.0-rc.1
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
OS: Windows 7 SP1
Node Version: v6.6.0
The text was updated successfully, but these errors were encountered: