Skip to content

Commit

Permalink
Only call "onDataLengthChanged" if length really changes (closes dipr…
Browse files Browse the repository at this point in the history
…okon#124)

Signed-off-by: Alexander Hain <[email protected]>
  • Loading branch information
Alexander Hain authored and proggler23 committed Aug 7, 2023
1 parent 003365d commit 8d341f8
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 8d341f8

Please sign in to comment.