-
-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue when lightbox is closed during animation #200
Comments
I can reproduce this. Thanks. Will take a look how to fix this ;) |
…200 issue closing during animation.
Thank you! But, I'm not sure it fully fixed. When closing during the opening of the gallery, it still stops working with an error. While clicking an image to open gallery, when the image fading in and you close the gallery with Esc or clicking outside, that still doesn't work correctly, SimpleLightbox stops working and Web console shows an error. Maybe that's an edge case, if you could take a look again, I would be grateful. |
Hey, I can't reproduce. Which browser are you using? |
Firefox 82.0.2. |
You are right and it only occurs in firefox :( I will take a look. |
This may or may not be related. I've created the following code
If you alternate between clicking on the a tag and click on the button the lightbox elements are left behind (see below) (over the click regions) and you are left unable to open the lightbox. The more often you click the more lightbox element appears as if they're being initialised more than once. |
Reproducible: Always
Steps to Reproduce:
Actual Results:
Simplelightbox has stopped working.
Expected Results:
The gallery is closed and can be opened again.
The text was updated successfully, but these errors were encountered: