Open CSFelix opened 4 weeks ago
Steps to Reproduce
const [showLightbox, setShowLightbox] = useState(true); const handleCloseLightbox = () => { setTimeout(() => { setShowLightbox(false); if (setIsLightboxVisible) setIsLightboxVisible(false); }, 50); }; {showLightbox && ( <Lightbox smallSrcSet={smallImgSrc} medium={mediumImgSrc} large={largeImgSrc} alt={'Caption'} showRotate={true} onClose={handleCloseLightbox} /> )}
zoom
Expected Behavior
Lightbox should close without triggering errors, as it does when closed by pressing ESC or by clicking the close (x) button.
ESC
close (x)
Version
2.6.0
Steps to Reproduce
zoom
buttonExpected Behavior
Lightbox should close without triggering errors, as it does when closed by pressing
ESC
or by clicking theclose (x)
button.Version
2.6.0