#18917·primeng

Datatable with virtual scroll broken in 20.1.2

Author: martinkasaCreated Sep 23, 2025Updated Sep 13, 2026
LabelsResolution: StaleStatus: Needs Triage

Describe the bug

There was a bug introduced in 20.1.2 where in some cases data table with virtual scroll on is not rendered properly. There are either no rows rendered initially or only one.

Downgrade to 20.1.1 solves the issue.

I suspect this as a problem. https://github.com/primefaces/primeng/commit/eb51995f2ef851a62220c254f55dc77da9d6caca

I do not know when it is happening, what is the root cause, so I am not able to prepare minimum reproducible environment.

Pull Request Link

No response

Reason for not contributing a PR

  • Lack of time
  • Unsure how to implement the fix/feature
  • Difficulty understanding the codebase
  • Other

Other Reason

No response

Reproducer

https://stackblitz.com/edit/github-jfsfzvie-ztvhgbj7

Environment

wsl2

Angular version

20.2.0

PrimeNG version

v20

Node version

20.1.2

Browser(s)

chrome, latest

Steps to reproduce the behavior

here is broken table with 20.1.2 https://stackblitz.com/edit/github-jfsfzvie-ztvhgbj7

here is working table with 20.1.1 https://stackblitz.com/edit/github-jfsfzvie-6jn9c6mz

Expected behavior

Items should be properly rendered.