diff --git a/src/VirtualList.js b/src/VirtualList.js index a2a74d5..81e1c02 100644 --- a/src/VirtualList.js +++ b/src/VirtualList.js @@ -53,7 +53,7 @@ const VirtualList = (options, mapVirtualToProps = defaultMapToVirtualProps) => ( // get first and lastItemIndex const state = getVisibleItemBounds(list, container, items, itemHeight, itemBuffer); - if (state === undefined) { return; } + if (state == null) { return; } if (state.firstItemIndex > state.lastItemIndex) { return; }