-
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
ionic 3 error virtual scroll #11093
Comments
Looks like there is an issue when the number of items is == 0. Fixed and added new tests: 5e142a0 |
@manucorporat : yes, I have these crashes too when the lists gets empty through filter operations. |
it works |
Hm, now I get a bunch of Typescript Errors when I try to "ionic serve":
and some more. |
I reverted back to |
I had it surrounded with an *ngIf so that it would only show if there's an item in the array but it doesn't show. It says: Virtual Scroll: Please provide an "approxItemHeight" input to ensure proper virtual scroll rendering |
@m00g33k having the same issue with the undefined records |
After I updated to 3.0.1 I still got property 'top' error, but found that this was due to my list being undefined, not empty (which it was upon load even though initialized to an empty array in a separate service). In case helpful to others, this worked for me: <ion-list [virtualScroll]="list.length ? list : []"> |
@amrsh , you are right the list needs to be defined for example : # IONIC 3
home.ts
|
still getting this error, is there any fix or workaround for this? i'm using version 3.1.2. |
Seconding what @Douglasfeuser said |
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. |
simple code
The text was updated successfully, but these errors were encountered: