diff --git a/src/index.jsx b/src/index.jsx index 39c1505..806196f 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -234,6 +234,8 @@ class LazyLoad extends Component { if (scrollContainer) { if (isString(scrollContainer)) { scrollport = scrollport.document.querySelector(scrollContainer); + } else { + scrollport = scrollContainer; } } const needResetFinalLazyLoadHandler =