virtualized-list icon indicating copy to clipboard operation
virtualized-list copied to clipboard

Return early if start or stop are null

Open koddsson opened this issue 4 years ago • 1 comments

Hey hey!

This patch should make sure that we don't throw when getVisibleRange returns a empty object:

https://github.com/clauderic/virtualized-list/blob/d519d57de207d73685a0230b9449e1d491d56353/src/VirtualList/SizeAndPositionManager.js#L121

Instead we just return early. Not sure if there is a better way to handle this case.

koddsson avatar Apr 23 '20 08:04 koddsson

Why would start or end be null??

MrPancakes39 avatar Aug 17 '21 16:08 MrPancakes39