Skip to content

Commit d519d57

Browse files
committed
return early if start or stop are null
1 parent cc995f2 commit d519d57

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/VirtualList/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ export default class VirtualizedList {
143143
offset,
144144
overscanCount,
145145
});
146+
147+
if (start == null || stop == null) return
148+
146149
const fragment = document.createDocumentFragment();
147150

148151
for (let index = start; index <= stop; index++) {

0 commit comments

Comments
 (0)