ng-table-virtual-scroll
ng-table-virtual-scroll copied to clipboard
Sticky footer not working
A sticky footer does not work, it disappears when scrolling down to only appear on the bottom at the table again.
I second this, same issue happening to me.
Can you share working example with the issue?
@diprokon Can you provide a working stackblitz page using this package. I believe I can reproduce it
I think this line should be changed
https://github.com/diprokon/ng-table-virtual-scroll/blob/6ac7e09e2ad6095c821a3ec046d361c4585b924c/projects/ng-table-virtual-scroll/src/lib/table-item-size.directive.ts#L34
to
const stickyFooterSelector = '.mat-footer-row .mat-table-sticky, .mat-footer-row.mat-table-sticky, .cdk-footer-row .cdk-table-sticky, .cdk-header-row.cdk-table-sticky';
for now I used this
<mat-footer-row *matFooterRowDef="columnsToDisplay; sticky: true" class="mat-header-row"></mat-footer-row>