Skip to content
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

Bug fix for onload race condition #628

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

Conversation

olwimo
Copy link

@olwimo olwimo commented Apr 17, 2018

Proposed fix for bug illustrated on https://jsfiddle.net/olwimo/h633q2re/
Please note that this is a quick&dirty fix off the top of my head, and I haven't done any testing yet; I'll do a few quick tests soon, just to be sure I haven't missed some obvious fault/better solution, but I'm not too familiar with lightbox, so it's better if you guys find the "right" way to fix it anyway - I just didn't want to report the bug without at least suggesting a way to fix it.

Pull Requests are welcome. But note that v2 of Lightbox is in Maintenance Mode and no new features
will be added. See the Roadmap.

PRs submitted will still be reviewed and then kept open for other users to utilize.

Proposed fix for bug illustrated on https://jsfiddle.net/olwimo/h633q2re/
Please note that this is a quick&dirty fix off the top of my head, and I haven't done any testing yet; I'll do a few quick tests soon, just to be sure I haven't missed some obvious fault/better solution, but I'm not too familiar with lightbox, so it's better if you guys find the "right" way to fix it anyway - I just didn't want to report the bug without at least suggesting a way to fix it.
@olwimo
Copy link
Author

olwimo commented Apr 17, 2018

See the fix in action at https://jsfiddle.net/olwimo/0gptfeap/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants