-
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
virtual-scroll with table row - ionic 4 RC01 #17095
Comments
Here is the full error text TypeError: Cannot read property 'context' of undefined |
I have the same issue with a virtual scroll containing an ion-item-sliding, same stack trace. |
I also have the same issue but with the header implementation! |
I have Cannot read property 'templateRef' of undefined, with the header implementation. |
Same issue with ion-item:
|
Same issue here. Error => HTML => |
Go to fesm5.js:4894 change : to run again. |
@zyhzx123e it does fix the error even though the rendering is still buggy. |
I have this same error implementing the ion-virtual-scroll with ion-col with ionic 5. |
I get the same problem, but I ctrl-z and then ctrl-y, it works! |
Does someone have a solution for this? |
any news here |
Thanks for the issue! With the release of Ionic 6 we will be deprecating Using these new virtual scrolling solutions should provide a better developer experience, more performant app, and fewer bugs! We have created migration guides for the main 3 JavaScript Frameworks Ionic supports to make this migration easy for developers. Migration for Angular users: https://ionicframework.com/docs/angular/virtual-scroll The documentation for
I am going to close this issue. Thank you! |
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. |
Bug Report
Ionic version:
[x] 4.x
Current behavior:
Virtual Scroll throws an error "TypeError: Cannot read property 'context' of undefined" and does not render anything when trying to repeat table rows and data
Expected behavior:
Virtual scroll renders list of objects performantly.
Steps to reproduce:
In a page create an array of objects
testArray = [{name:"test1"}, {name:"test2"}, {name:"test3"}]
In the template , populate a row with the following template
If we replace tr tags with ion-item the error disappears and it renders the elements in the DOM but the elements are not visible.
Other information:
Ionic info:
The text was updated successfully, but these errors were encountered: