I am loading images via a query loop and using a lightbox to show them.
i am giving every image the same lightbox id to group them.
Together with lazy loading every image only has a lightbox reference of the images loaded up to the point where the image first appeared.
is there a way to “reindex” the lightbox for every image once new images are loaded. i couldnt find a way to do this manually.
Otherwise what are your workaround to show a image gallery and lightbox for a big amount of images.
regards,
Dario
Browser**: Chrome 110 OS: macOS / Windows / Linux / etc. URL: Link to a page that illustrates this issue Video: Short screen recording that illustrates this issue (free tool: jam.dev)
[Please describe this bug in as much detail as possible so we can replicate & debug this bug]
We have already received a report by email and created an internal task. We will get back to you as soon as the problem has been resolved. Unfortunately, I can’t provide you with a workaround, sorry.
The only workaround i could find is by creating my own lightbox with js and css, hiding a “load more” button on the page and repeaditly clicking on it with js as soon as my custom light box is open.
If anyone needs the code for it, feel free to hit me up
Hi Dario,
We’re marking this issue as solved: the lightbox groups now refresh as query results load, and we verified the behavior with both Load more and infinite scroll. We can’t confirm the specific release that includes the fix yet (tested in 2.4.3).
If you can still reproduce this in the latest Bricks release, please share updated steps to reproduce it.