Bug fixing the refactor, Modals not working nor the scroll fader.

This commit is contained in:
2018-10-26 07:26:24 +11:00
parent 88e0d6f4ab
commit 2280239870
12 changed files with 54 additions and 47 deletions

View File

@ -63,13 +63,13 @@ export default class LoadableImage extends React.Component {
let newProps = {...this.props};
let { loading } = this.state;
let { className, width, height } = this.props;
["loadable"].forEach(e => delete newProps[e]);
let loader,imageSizer;
let image = <Image
{...newProps}
className="o-loadable-image__image"
className={`o-loadable-image__image ${className||""}`}
onLoad={() => this.onLoad()}
onError={() => this.onError()}
/>;