diff --git a/src/components/ImageGallery.jsx b/src/components/ImageGallery.jsx index e4ab0792..0652f238 100644 --- a/src/components/ImageGallery.jsx +++ b/src/components/ImageGallery.jsx @@ -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}