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.
2 parents 208f735 + 5a26428 commit 32f4547Copy full SHA for 32f4547
src/InfiniteScroll/InfiniteScroll.ts
@@ -31,10 +31,7 @@ export class InfiniteScroll {
31
const { windowScroll } = this.props;
32
const scrollingContainerRef = getScrollingContainerRef({ ref, windowScroll });
33
34
- if (!isValidScrollingContainerRef(scrollingContainerRef)) {
35
- console.error('Sorry I can\'t use this container - try using a different DOM element.');
36
- return;
37
- }
+ if (!isValidScrollingContainerRef(scrollingContainerRef)) return;
38
39
this._scrollingContainerRef = scrollingContainerRef;
40
0 commit comments