-
Notifications
You must be signed in to change notification settings - Fork 219
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
TypeError: Cannot read property 'alignTitle' of null - at IonHeaderBar.alignTitle (ionHeaderBar.js:3) #347
Comments
Well i'm interested in this too. |
This was working fine for me in Meteor 1.2.1, then, after some seemingly minor and unrelated changes, that error started popping up in the browser console. @ClarenceL thanks for the tip about passing a dummy variable to ionNavBar. That fixed it for me too, although, like you say, it feels like just masking the real issue. |
For once, this.data is read-only and shouldn't be written on:
I'll refactor and post a fix here (and push it on my local fork). |
Haven't experienced this issue and couldn't reproduce on Meteor@1.2.1 @JoeyAndres Awesome repo, just checked it out. |
@aesmon Got a notification. Thanks man. Really appreciate it. |
@JoeyAndres I know it may be an off-topic, but since it seems you are actively working with Ionic and Meteor mobile development, have you experienced disappearing items when showing/hiding the keyboard? I find it to be quite a problem that I keep experiencing over and over. The item is exactly there, but is not rendered anymore, when I focus the "invisible" input then it will show up again. It looks like Uiwebview limitation in regards to CSS, but I fail to see any consistent pattern with this happening. Seems like padding on elements will cause it most often. Is it a common issue? This is the first hybrid app I am developing. |
@aesmon I have created meteoric mobile website that utilized the use of keyboard heavily, but have not come across this problem. We have yet to release it to android/apple appstore though, just mobile browser. |
@JoeyAndres Thanks for the input. It might have been the UiWebView limitation. I have given Meteor 1.3 beta a spin and WkWebView eliminated these rendering problems for me. Have you tried it yet? |
@aesmon Nope. TBH, I'm only interested with the "better testing integration" or just testing in general. Which are external packages/modules like chimp.js, velocity, etc. Last time I checked, chimp.js have a primitive implementation of multi browser testing (hardcoded to 2). I'm just hoping that this can be truly variable next time. |
Getting an odd error
It doesn't take long to see where it's breaking for me, but I have no idea how it gets to this state
Template.ionNavBar.data is null
I see that it's clearly set in ionNavBar.js to at least empty obj
However after rendering
A breakpoint before the call to alignTitle shows that
this.data
is null, how it got set to null between onCreated to onRendered is beyond me, might be my environment but this only started happening after moving to Meteor 1.2.1I'm tempted to submit a null check, but I feel this is hiding the issue.
For now passing a dummy variable to ionNavBar works...
The text was updated successfully, but these errors were encountered: