Skip to content

Commit e88b652

Browse files
committed
Fixed build failure
1 parent 496b58c commit e88b652

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/InfiniteScroll.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ export default class InfiniteScroll extends Component {
8989
}
9090

9191
getParentElement(el) {
92-
const scrollParent = this.props.getScrollParent();
92+
const scrollParent =
93+
this.props.getScrollParent && this.props.getScrollParent();
9394
if (scrollParent != null) {
9495
return scrollParent;
9596
}

0 commit comments

Comments
 (0)