Skip to content

Commit 14e2cd6

Browse files
committed
Fix delayMethod and delayTime not being passed down to PlaceholderWithTracking. Fixes #35
1 parent 1fb0c29 commit 14e2cd6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/LazyLoadComponent.jsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ class LazyLoadComponent extends React.Component {
4545
return this.props.children;
4646
}
4747

48-
const { className, height, placeholder, scrollPosition, style,
49-
threshold, width } = this.props;
48+
const { className, delayMethod, delayTime, height, placeholder,
49+
scrollPosition, style, threshold, width } = this.props;
5050

5151
if (this.isScrollTracked || isIntersectionObserverAvailable()) {
5252
return (
@@ -65,6 +65,8 @@ class LazyLoadComponent extends React.Component {
6565
return (
6666
<PlaceholderWithTracking
6767
className={className}
68+
delayMethod={delayMethod}
69+
delayTime={delayTime}
6870
height={height}
6971
onVisible={this.onVisible}
7072
placeholder={placeholder}

0 commit comments

Comments
 (0)