Skip to content

Commit

Permalink
Update Image.tsx (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
xch1029 authored Jul 19, 2021
1 parent 8bddb47 commit e4d6c43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ const ImageInternal: CompoundedComponent<ImageProps> = ({
<div
{...otherProps}
className={wrapperClass}
onClick={preview && !isError ? onPreview : onClick}
onClick={canPreview ? onPreview : onClick}
style={{
width,
height,
Expand Down

1 comment on commit e4d6c43

@vercel
Copy link

@vercel vercel bot commented on e4d6c43 Jul 19, 2021

Choose a reason for hiding this comment

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

Please sign in to comment.