fix(virtual-scroll): Preventing 0 items rendering bug#172
fix(virtual-scroll): Preventing 0 items rendering bug#172menosprezzi wants to merge 1 commit intoeakoriakin:v3from
Conversation
The Ionic's virtual-scroll directive should not be re-rendered due to a template directive because it can't keep it viewport state internally. Closes eakoriakin#146
|
When I try this on ionic 3.9.8 it breaks AOT --prod :( |
|
When i run I get this error. How can I skip that heroku part? @menosprezzi Thanks in advance! |
|
Is there a chance that author would just merge the changes? Even if i pull and try to build with gulp a package - it still has some errors rxjs. If anyone knows how to build it locally would appreciate that info |
I did it, instead of recompiling as it was failing I just copied locally the files in |
Actually it introduces another bug
|
Hello Mr @eakoriakin! I'm thankful for your component, it's great!
I'm dealing with the issue #146 in my app, so I decided to help in this repo. I've found the code that causes the bug in the component.
The Ionic's virtual-scroll directive should not be re-rendered due to a template directive (ngIf in this case) because it can't keep it viewport state internally. The virtual-scroll needs to keep disposed on the template to match the boundaries to render items when new items came.
Thanks again!