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
Your numbers disappear because you use ref?.current?.scrollTo((newData.length - 1) * 37);,
You could try to use ref?.current?.scrollTo(0);, or shorten the List height like height={100}, it will be scrollable.
How to reproduce?
Go to this codesandbox, click add
What is the expectation?
The list increases after clicking
add
button, list should be0
to5
What actually happened?
0
1
and2
item lostThe text was updated successfully, but these errors were encountered: