primereact icon indicating copy to clipboard operation
primereact copied to clipboard

VirtualScroller: does not update items if only rows length changes

Open mamsellem opened this issue 1 year ago • 0 comments

Describe the bug

VirtualScroller with both directions does not update items if the number of columns changes but not the number of rows. The error is in useUpdateEffect that compares prev items length with current items length. This will return false if only the number of columns has changed.

Reproducer

No response

PrimeReact version

9.6.0+

React version

18.x

Language

TypeScript

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

mamsellem avatar May 17 '24 20:05 mamsellem