You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I step on an issue where, if the parent tag of the cdk-virtual-scroll-viewport start with [hidden]="true" then when the div becomes visible the tbody of the table is empty.
Solution:
If I set loading to false as default value instead of true and setting it to true only in the ngAfterViewInit this is fixing it but I think this could be useful to share.
The text was updated successfully, but these errors were encountered:
I didn't manage to reproduce it on stackblitz but I also had the issue where a parent tag (multiple levels up in the hierarchy) has a ngIf resolving to false on startup and when becoming true the table has no body.
Is their something I can do to prevent this behaviour ? I don't want to let the div always visible.
I step on an issue where, if the parent tag of the
cdk-virtual-scroll-viewport
start with[hidden]="true"
then when the div becomes visible thetbody
of the table is empty.I reproduced it on stackblitz: https://stackblitz.com/edit/angular-kfegg3?file=src/app/base-example.component.html
Solution:
If I set
loading
tofalse
as default value instead oftrue
and setting it totrue
only in thengAfterViewInit
this is fixing it but I think this could be useful to share.The text was updated successfully, but these errors were encountered: