Skip to content

Commit

Permalink
add onError prop to Img (#18)
Browse files Browse the repository at this point in the history
* add onError prop to Img

add onError prop to Img

* Update index.js

fix typo
  • Loading branch information
bexoss authored and ValentinH committed Oct 25, 2018
1 parent 41d5e3a commit f7caf8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ class Cropper extends React.Component {
src={this.props.image}
innerRef={el => (this.image = el)}
onLoad={this.onImgLoad}
onError={this.props.onImgError}
alt=""
style={{
transform: `translate(${x}px, ${y}px) scale(${zoom})`,
Expand Down

0 comments on commit f7caf8c

Please sign in to comment.