Skip to content

Commit

Permalink
address lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-kunaico committed Sep 9, 2022
1 parent 153feab commit 069c642
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/react-image-lightbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -1630,9 +1630,10 @@ class ReactImageLightbox extends Component {
borderRadius: '4px',
}}
src={img}
role="presentation"
alt={img.caption}
onClick={() => {
!this.isAnimating()
return !this.isAnimating()
? this.requestMoveIndex({ index })
: undefined;
}}
Expand Down

0 comments on commit 069c642

Please sign in to comment.