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 e88b652 commit d203514Copy full SHA for d203514
dist/InfiniteScroll.js
@@ -166,7 +166,8 @@ var InfiniteScroll = (function(_Component) {
166
{
167
key: 'getParentElement',
168
value: function getParentElement(el) {
169
- var scrollParent = this.props.getScrollParent();
+ var scrollParent =
170
+ this.props.getScrollParent && this.props.getScrollParent();
171
if (scrollParent != null) {
172
return scrollParent;
173
}
0 commit comments