react-windowed-list icon indicating copy to clipboard operation
react-windowed-list copied to clipboard

A null initialIndex value triggers a warning but is the only way to avoid unwanted scrolling

Open eterzago opened this issue 3 years ago • 2 comments

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: image Maybe I'm missing something?

eterzago avatar Jan 15 '21 10:01 eterzago

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?

planttheidea avatar Jan 16 '21 03:01 planttheidea

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.

planttheidea avatar Jan 24 '21 17:01 planttheidea