Skip to content

Commit

Permalink
return index to consumer
Browse files Browse the repository at this point in the history
  • Loading branch information
Kathy0208 committed Apr 28, 2024
1 parent 4f81d93 commit 6bfcbbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ImageGallery.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ class ImageGallery extends React.Component {
tabIndex="-1"
className={`image-gallery-slide ${alignment} ${originalClass}`}
style={slideStyle}
onClick={onClick}
onClick={(event) => onClick(event, index)}
onKeyUp={this.handleSlideKeyUp}
onTouchMove={onTouchMove}
onTouchEnd={onTouchEnd}
Expand Down

0 comments on commit 6bfcbbc

Please sign in to comment.