-
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
ionic2 VirtualScroll does not redraw with empty list #6512
Comments
I have also seen this when using a search box to filter a list. If there is a match to the search term the list correctly updates. If there is no match (ie empty list) nothing happens |
Please fix this soon, this makes the virtualscroll list pretty unusable. |
You can still add an ngIf on that element for the moment, works like a charm 😉 |
I don't know if this issue has already been fixed in latest beta.10, but anyway: <ion-list *ngIf="items.length > 0" [virtualScroll]="items">
<ion-item *virtualItem="let item" [style.width.%]="100">
Item {{item.title}}
</ion-item>
</ion-list> |
@mpaland Thanks, I'm on beta 10 and still facing the issue. |
@WebEnzyme , if you're still having problems with the *ngIf you'll want to make sure that 'items' is being initialized. |
i am also using |
I have tried using the |
Same for me in <ion-list *ngIf="showingSection == 'list'" [virtualScroll]="storesList?.items" approxItemHeight="70px">
<ion-item *virtualItem="let item" text-wrap> |
Virtual Scroll component didn't get any love for a longer time. :-( |
Still an issue... |
I have implemented this solution, until Ionic resolve the issue |
Guys, to avoid the performance issue when using the *ngIf workaround, just replace it with a [hidden] attribute using the opposite logic. Example:
Hope the Ionic team can soon fix this bug, though. |
catched this issue just now in rc2 |
This Issue still exists in RC2 |
still having this problem in 2.8.0 |
still having also the same problem |
@notsure @aarnaudiktons can you please fill a new issue? I can't reproduce this version in 2.2 @notsure ionic 2.8 does not exist |
@manucorporat - This looks good for me in 2.2.0 |
Still have the issue, when list is empty.
and then check it, e.g. I implemented a filter in authors tab in the Conference app example this way, works fine |
@dspachos how did you use this with virtualscroll? mind showing me the full html? |
Here you are:
hope it helps! |
Any updates on this issue? I am also experiencing it. |
Still experiencing this problem |
Still reproduced |
Please reopen |
This is still an issue |
ionic 3.6 and still same problem. |
solved it using this answer. https://stackoverflow.com/a/44041426 |
ionic 3.7.1 and still the same problem |
Some news about the virtualscroll issues ? I'm on 3.10.3 and still virtualscroll not working correctly; well, sometimes it does, but have issues as:
Very sorry as virtualscroll is really a plus and helps get performances at the top, but the random issues stop me to use it in production |
fixed:
|
@442623641 so to understand the "fix": Every 300ms we send an READY event for virtualscroll and after 300ms after submitting an event, we send writeReady event. What that basically means is, that VirtualScroll redraws every 300ms? |
My solution came using the pages/mypage/mypage.hml pages/mypage/mypage.ts
There is also |
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:
VirtualScroll does not redraw with empty list. When modifying the item list, it is rightly updating, but when the list becomes empty nothing happens.
What behavior are you expecting?
When the item list becomes empty, nothing should be visible anymore.
Steps to reproduce:
Which Ionic Version?
2.0.0-beta.6
Plunker that shows an example of your issue
http://plnkr.co/edit/xzwWnAtuzyQFkwQfrmAW?p=preview
Run
ionic info
from terminal/cmd prompt: (paste output below)Your system information:
Cordova CLI: 6.0.0
Gulp version: CLI version 3.9.0
Gulp local: Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.6
Ionic CLI Version: 2.0.0-beta.25
Ionic App Lib Version: 2.0.0-beta.15
OS: Distributor ID: Ubuntu Description: Ubuntu 16.04 LTS
Node Version: v6.1.0
The text was updated successfully, but these errors were encountered: