guonanci / react-images-viewer

A react library that view photos list easily, and a simple, responsive viewer component for displaying an array of images.
https://guonanci.github.io/react-images-viewer/
MIT License
162 stars 38 forks source link

Backdrop closeable isn't working and previewing images causes two images to display one behind the other #59

Open Srikanth-LSharma opened 1 year ago

Srikanth-LSharma commented 1 year ago

Steps to reproduce the behavior:

This is the code I am using <ImgsViewer imgs={randomImgs} currImg={currentImage} isOpen={isOpen} onClickPrev={onClickPrev} onClickNext={onClickNext} onClose={onClose} enableKeyboardInput={true} showThumbnails={true} onClickThumbnail={openViewer} preloadNextImg={true} />

Expected behavior:

Like the one on the docs image

Actual behavior:

Backdrop isn't clickable and it isn't triggering any event to close