-
-
Notifications
You must be signed in to change notification settings - Fork 173
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
Lightbox opens href instead of lightbox in chrome #323
Comments
Can you try and disable turbolinks and see if the problem persists? I'm pretty certain that this is not a issue with simplelightbox. I see that the lightbox opens before the location is changed to the image uri |
Yes, the lightbox does open before switching to a new page. Oh, yes, ofcourse. Let me try, it would be so obvious. |
Too bad. Disabling turbo on these links doesn't work. Neither does completely disabling turbo. For some reason I can not reproduce it on localhost, to test it in development I have to add a fake domain to /etc/hosts. Anything else you can think of? Edit: I think I found the culprit. For some reason the plausible tracker causes this issue. I will edit this if I manage to fix it, but I'm fairly certain this isn't simplelightbox related. Thanks for the quick response and help. Maybe I just needed the virtual rubber duck. Edit 2: Found the culprit, this was unrelated to simplelightbox. I used plausible tracker My bad for flagging this, thanks for the help. |
no worries, I'll close this issue |
On chrome only (firefox works fine) it opens the lightbox and then immediately navigates to the image. I can't seem to fix it.
Live example, for example on my personal website: https://www.dinandmentink.nl/postits/4
This is the script I use to initialize the lightbox:
I tried fixing it by using preventDefault and stopPropagation, but no dice. Anyone run into this, any suggestions? I really hope someone can shed some light on this, I have been breaking my head on it.
The text was updated successfully, but these errors were encountered: