-
-
Notifications
You must be signed in to change notification settings - Fork 677
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
Getting lost of src attribute when having a double instance of LazyLoad #484
Comments
Hey @Elnadrion, I can confirm this bug. I have similar problem. When I scroll page multiple times, it looks like that image is still observed and src attribute is removed on second time. Until this will be fixed, you can use temporary solution. Instead of elements_selector you can pass elementsToLazyLoad even if you want to select only one element
Please let me know, if that helps. |
Hey @Elnadrion , I've created this pen to try and reproduce the problem, but I couldn't. Thanks |
Thank you @Elnadrion for reporting that, I will investigate on why that happens, then try and solve it. |
I've found that the conflict between the 2 instances of LazyLoad occurs only in version 17 because of the newly added feature |
Alright, thank you 🤗👍🏻 |
Hey @Elnadrion, I've just pushed version 17.2.0, which solves this problem, and it's also 0.5kb lighter. If you’re happy with my support, the documentation and the effort I’ve been putting on this project in the latest years, I hope you might want to buy me a coffee to show your appreciation. Open-source software is great for everyone, but it takes passion and time to grow and evolve. Thank you for thinking about it. |
Thank you very much for the coffee, @Elnadrion You rock! 👨🎤 |
Describe the bug
I'm using CSS hover effect to change the picture in slider (1st become "display: none" and second become "display: block")
When 1st picture became "display: none" it's attribute src getting lost, and then, when I move cursor out of the picture - there is no picture at all
It works only in 17+ versions
To Reproduce
Steps to reproduce the behavior:
LazyLoad version
17+
Desktop (please complete the following information):
Additional context
Also I made the video for you https://yadi.sk/i/NNmmK2DR1fALLQ
The text was updated successfully, but these errors were encountered: