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
Hi, we "solved" the issue of unnecessary triggering of lazy load event (#7657)
by turning off virtual scroll when there is a small number of rows. We react to change of totalRecords, but p-table also reacts to change of totalRecords, by trying to setVirtualScrollerHeight, but this ends up throwing
P-table Cannot read property 'nativeElement' of undefined
because in the meantime, we set virtualScroll false and I think that it causes your virtualScrollerViewChild to be undefined.
Can you please repair
ScrollableView.prototype.setVirtualScrollerHeight = function () {
if (this.virtualScrollerViewChild.nativeElement) {
this.virtualScrollerViewChild.nativeElement.style.height = this.dt.totalRecords * this.dt.virtualRowHeight + 'px';
}
};
so that it doesn't throw error when this.virtualScrollerViewChild is undefined? Or repair the original issue #7657
The text was updated successfully, but these errors were encountered:
Hi, we "solved" the issue of unnecessary triggering of lazy load event (#7657)
by turning off virtual scroll when there is a small number of rows. We react to change of totalRecords, but p-table also reacts to change of totalRecords, by trying to setVirtualScrollerHeight, but this ends up throwing
P-table Cannot read property 'nativeElement' of undefined
because in the meantime, we set virtualScroll false and I think that it causes your virtualScrollerViewChild to be undefined.
Can you please repair
The text was updated successfully, but these errors were encountered: