Skip to content

Commit

Permalink
Only call "onDataLengthChanged" if length really changes (close #124, c…
Browse files Browse the repository at this point in the history
…lose #125)
  • Loading branch information
proggler23 authored Mar 31, 2024
1 parent ce9730b commit ae80279
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ export class FixedSizeTableVirtualScrollStrategy implements VirtualScrollStrateg
}

set dataLength(value: number) {
this._dataLength = value;
this.onDataLengthChanged();
if (value !== this._dataLength) {
this._dataLength = value;
this.onDataLengthChanged();
}
}

private _dataLength = 0;
Expand Down

0 comments on commit ae80279

Please sign in to comment.