Open 2239559319 opened 3 months ago
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 lost