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 26ff473 commit 796078dCopy full SHA for 796078d
src/components/LazyLoadImage.jsx
@@ -18,8 +18,6 @@ class LazyLoadImage extends React.Component {
18
}
19
20
return () => {
21
- this.props.afterLoad();
22
-
23
this.setState({
24
loaded: true,
25
});
@@ -99,9 +97,9 @@ class LazyLoadImage extends React.Component {
99
97
loaded || !placeholderSrc
100
98
? {}
101
: {
102
- backgroundImage: `url(${placeholderSrc})`,
103
- backgroundSize: '100% 100%',
104
- };
+ backgroundImage: `url(${placeholderSrc})`,
+ backgroundSize: '100% 100%',
+ };
105
106
return (
107
<span
0 commit comments