Replies: 2 comments 11 replies
-
Thank you for reporting the issue. |
Beta Was this translation helpful? Give feedback.
-
Instead of starting a new thread I will continue to post here since this new issue is related. When I hard code the dynamicEl object values, every thing works fine after refresh(). As I am moving towards making my lightgallery dynamic I am running into an issue when using fetch() and JSON files. After refresh for some reason the first NEW loaded image is not showing. The thumbnail refreshes but the large image doesn't. Instead it shows the first large image of the previously loaded gallery. If you collapse the gallery and click on the same initial thumbnail again, the correct large image does appear. You can see the issue here: Thanks |
Beta Was this translation helpful? Give feedback.
-
On the first init of dynamicGallery, all instances of videos and images load and play fine. But when you add more videos to the object, you receive the "Oops.... Failed to Load" message.
In the code below, I am clearing all the current gallery values and only adding new values including a mix of video and images. Only the images load. The video thumbnail displays but the video fails to load.
const updatedDynamicElements = [...newImages];
dynamicGallery.refresh(updatedDynamicElements);
TIA
Beta Was this translation helpful? Give feedback.
All reactions