Repository navigation
react-virtuoso@4.18.9
·
90 commits
to main
since this release
Patch Changes
- #1444
0c68e81Thanks @Luccas-carvalho! - Harden scroll-target and initial-index handling:- Clamp the initial top-most item index to the available range, so an out-of-range
initialTopMostItemIndex(for example after the data set shrinks) no longer starts the list at a blank or mid-list position. - Stop mutating the location object passed to
scrollToIndex;normalizeIndexLocationnow applies its defaults to a shallow copy. - Treat a default-positioned
initialTopMostItemIndexof{ index: 0 }the same as0, avoiding a redundant initial scroll and a delayedfollowOutput.
- Clamp the initial top-most item index to the available range, so an out-of-range