Skip to content

Commit

Permalink
fix(src): temporarily remove ref as its breaking stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
benmneb committed Nov 20, 2022
1 parent c52c1ee commit 2e80208
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Image.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const Img = styled('img')({
},
});

export default React.forwardRef(function Image(props, ref) {
export default function Image(props) {
const {
src,
alt,
Expand Down Expand Up @@ -127,7 +127,6 @@ export default React.forwardRef(function Image(props, ref) {
onLoad={handleLoad}
onError={handleError}
{...rest}
ref={ref}
/>
{(Boolean(showLoading) || Boolean(errorIcon)) && (
<div
Expand All @@ -140,7 +139,7 @@ export default React.forwardRef(function Image(props, ref) {
)}
</div>
);
});
}

Image.defaultProps = {
alt: '',
Expand Down

1 comment on commit 2e80208

@JudeTejada
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any update when is ref gonna be added back?

Please sign in to comment.