Skip to content

Commit

Permalink
Merge pull request #7 from Peter-Springer/styleAttribute
Browse files Browse the repository at this point in the history
Add a style attribute that can be set as part of the image prop
  • Loading branch information
Jarlotee authored Mar 26, 2018
2 parents 0afe872 + 9c40e6a commit 0d00177
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cursor-zoom.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class CursorZoom extends React.Component {
}
}
render() {
return <img ref="image" width={this.props.image.width} height={this.props.image.height} src={this.props.image.src} />;
return <img ref="image" width={this.props.image.width} height={this.props.image.height} src={this.props.image.src} style={this.props.image.style} />;
}
}

Expand Down

0 comments on commit 0d00177

Please sign in to comment.