You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changing line 437 from
initialScrollIndex={saveScrollPosition ? selectedIndex : -1}
to
initialScrollIndex={saveScrollPosition ? selectedIndex : 0}
makes it possible to disable saveScrollPosition and avoid the -1 warnings.
As it happens saveScrollPosition doesn't work reliably on the latest versions of react anyway, often not rendering the full list, so simply having the option to directly override initialScrollIndex to 0 would be better.
The text was updated successfully, but these errors were encountered:
Changing line 437 from
initialScrollIndex={saveScrollPosition ? selectedIndex : -1}
to
initialScrollIndex={saveScrollPosition ? selectedIndex : 0}
makes it possible to disable saveScrollPosition and avoid the -1 warnings.
As it happens saveScrollPosition doesn't work reliably on the latest versions of react anyway, often not rendering the full list, so simply having the option to directly override initialScrollIndex to 0 would be better.
The text was updated successfully, but these errors were encountered: