Skip to content

Commit 32f4547

Browse files
authored
Merge pull request #89 from vdmrgv/fix-error-message
fix set ref error message
2 parents 208f735 + 5a26428 commit 32f4547

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/InfiniteScroll/InfiniteScroll.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,7 @@ export class InfiniteScroll {
3131
const { windowScroll } = this.props;
3232
const scrollingContainerRef = getScrollingContainerRef({ ref, windowScroll });
3333

34-
if (!isValidScrollingContainerRef(scrollingContainerRef)) {
35-
console.error('Sorry I can\'t use this container - try using a different DOM element.');
36-
return;
37-
}
34+
if (!isValidScrollingContainerRef(scrollingContainerRef)) return;
3835

3936
this._scrollingContainerRef = scrollingContainerRef;
4037

0 commit comments

Comments
 (0)