We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ae4a87 commit 03a15dbCopy full SHA for 03a15db
src/List.tsx
@@ -443,7 +443,7 @@ class List<T> extends React.Component<ListProps<T>, ListState<T>> {
443
} = this.props;
444
445
// Render pure list if not set height or height is enough for all items
446
- if (height === undefined || data.length * itemHeight <= height) {
+ if (typeof height !== 'number' || data.length * itemHeight <= height) {
447
return (
448
<Component style={height ? { ...style, height, ...ScrollStyle } : style} {...restProps}>
449
<Filler height={height}>{this.renderChildren(data, 0, children)}</Filler>
0 commit comments