react-windowed-list
react-windowed-list copied to clipboard
A null initialIndex value triggers a warning but is the only way to avoid unwanted scrolling
Hello!
Pretty much what the title says. If I input a non-null value into the initialIndex
attribute of my windowed list, including 0, the initial position of the scroll is not the top of the list, but somewhere in the middle. The only solution I've found works is to use a null value, but that triggers the following warning:
Maybe I'm missing something?
I can definitely look into this, but it may take a minute. Is there a way you can provide a simple repro of the issue?
I have tried to repro this based on the description, but all the possible variants (x
vs y
, variable
vs uniform
, usePosition
vs useTranslate3d
, etc.) appear to start at the beginning of the list when setting initialIndex
to 0
. If you can provide a valid repro, this would help.