From 13aaccdd844233d8c00ca30b2acc33c161432c2d Mon Sep 17 00:00:00 2001 From: Dominic Masters Date: Wed, 24 Oct 2018 17:59:01 +1100 Subject: [PATCH] Fixed image loading callbacks. --- public/objects/image/LoadableImage.jsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/public/objects/image/LoadableImage.jsx b/public/objects/image/LoadableImage.jsx index 4c20bd5..3e8e1dd 100644 --- a/public/objects/image/LoadableImage.jsx +++ b/public/objects/image/LoadableImage.jsx @@ -65,7 +65,12 @@ export default class LoadableImage extends React.Component { let { className, width, height } = this.props; let loader,imageSizer; - let image = ; + let image = this.onLoad()} + onError={() => this.onError()} + />; let clazz = "o-loadable-image";