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 8bda502 commit 0b0bb1fCopy full SHA for 0b0bb1f
src/index.tsx
@@ -37,7 +37,7 @@ export class ProgressiveImage extends React.Component<ProgressiveImageProps & Di
37
render() {
38
const {src, style, background} = this.props;
39
return background ?
40
- <div style={Object.assign(this.getBackgroundStyle(), style)} {...this.clonedProps} />
+ <div style={Object.assign(this.getBackgroundStyle(), style)} {...this.clonedProps}>{this.props.children}</div>
41
:
42
<img src={src} style={Object.assign(this.getStyle(), style)} {...this.clonedProps} />
43
;
@@ -73,4 +73,4 @@ export class ProgressiveImage extends React.Component<ProgressiveImageProps & Di
73
};
74
return Object.assign(style, this.getStyle());
75
}
76
-}
+}
0 commit comments