Closed akre54 closed 6 years ago
VirtualList.js#54 compares firstItemIndex vs its previous value. If any of the arguments passed to getVisibleItemBounds are undefined (or more critically, if items.length is 0), this check will be a TypeError. This change fixes this.
getVisibleItemBounds
There should also probably be a test for this.
Also #66 would fix this (returning early if state is undefined
state
VirtualList.js#54 compares firstItemIndex vs its previous value. If any of the arguments passed to
getVisibleItemBounds
are undefined (or more critically, if items.length is 0), this check will be a TypeError. This change fixes this.There should also probably be a test for this.