primefaces / primeng

The Most Complete Angular UI Component Library
https://primeng.org
Other
10.61k stars 4.62k forks source link

P-Table: Virtual scroll + filter (empty) error #16587

Open AlexFHer opened 1 month ago

AlexFHer commented 1 month ago

Describe the bug

When a table is created with virtual scroll and filter at the same time it works fine until the filter does not match any value

The table just explodes and even if you change the filter it wont go back to normal, seems like the height is not being calculated correctly afterwards...

here is an example from stackblitz using the table virtual scroll and just adding the filter:

https://stackblitz.com/edit/vsn2ph?file=src%2Fapp%2Ftable-virtual-scroll-demo.html,src%2Fservice%2Fcarservice.ts

Environment

Prime ng 17.18.11 Windows 11 Chrome

Showcase in stackblitz.

Reproducer

No response

Angular version

18.0.1

PrimeNG version

17.18.11

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

v20.17.0

Browser(s)

Chrome

Steps to reproduce the behavior

Repro steps

  1. Create table with virtual scroll
  2. Add filtering
  3. type something in filter it does not exist in the data so 0 ocurrences are found

Expected behavior

If the filter changes it should show the data

nishtha9102 commented 1 month ago

Hi can i be assigned this @AlexFHer

AlexFHer commented 1 month ago

Sure, thanks!