primereact
primereact copied to clipboard
Datatable: Virtualscroll and frozenvalue (frozen rows) hide first rows
Describe the bug
Hi! When in datatable you enable VirtualScroller and you freeze a row, the freezed row show correctly, but the other rows (one or two rows, depend on the height), goes behind the freezed row.
Disabling VirtualScroll, everthing works again correctly. I think you should put a margin-top to VirtualScroll component in Datatable
Reproducer
No response
PrimeReact version
8.6
React version
18.x
Language
ALL
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
- Create a list of 100 rows (value: dataRows[] )
- Enable VirtualScroller in Datatable (eg: virtualScrollerOptions: { itemSize: 25 })
- Create a datatable with frozenValue (eg: frozenValue: dataRows[0])
- Without scroll, you see that at least first two rows will be hidden by the frozen row.
Expected behavior
No response