Fixed image loading callbacks.

This commit is contained in:
2018-10-24 17:59:01 +11:00
parent cc78bf1200
commit 13aaccdd84

View File

@ -65,7 +65,12 @@ export default class LoadableImage extends React.Component {
let { className, width, height } = this.props;
let loader,imageSizer;
let image = <Image {...newProps} className="o-loadable-image__image" />;
let image = <Image
{...newProps}
className="o-loadable-image__image"
onLoad={() => this.onLoad()}
onError={() => this.onError()}
/>;
let clazz = "o-loadable-image";