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
Desktop (please complete the following information):
OS: MacOS
Browser: Firefox, Safari
Additional context
If I remove increaseViewportBy then it works the first time I do prepend, but if I then manually scroll to the top of the list and do prepend again, then it fails even without defining increaseViewportBy.
The text was updated successfully, but these errors were encountered:
Confirming, the problem is related to increaseViewportBy. This should work, I will look for a fix.
petyosi
changed the title
[BUG] Scroll position change when prepending one item of unknown height (without scrolling)
[BUG] Scroll position change when prepending one item of unknown height with increaseViewportBy
Jul 13, 2023
Describe the bug
When you are at the top of the list, and you prepend a new item with an unknown height, the list is changing the scroll position.
Reproduction
https://codesandbox.io/s/sandpack-project-forked-gzs242?file=/App.js
To Reproduce
Steps to reproduce the behavior:
Expected behavior
When prepend there should be no automatic scroll changes.
Screenshots
https://github.com/petyosi/react-virtuoso/assets/619122/8dfcfe79-7795-41f4-bdf4-cff5ace6d2b2
Desktop (please complete the following information):
Additional context
If I remove
increaseViewportBy
then it works the first time I doprepend
, but if I then manually scroll to the top of the list and doprepend
again, then it fails even without definingincreaseViewportBy
.The text was updated successfully, but these errors were encountered: