soflyy / oxygen-bugs-and-features

Bug Reports & Feature Requests for Oxygen
https://oxygenbuilder.com/
315 stars 29 forks source link

Gallery lightbox doesn't work in a repeater with more than 1 result #2520

Open santo74 opened 3 years ago

santo74 commented 3 years ago

Describe the bug When adding a repeater to a page where each repeater item has a gallery then the gallery lightbox only works in the gallery of the first item. The galleries of the other items in the repeater just navigate to the image file when clicking on an image instead of opening it in a lightbox. I guess this might be caused by the fact that each item gets the same idea?

IF YOU CAN'T PROVIDE A SANDBOX REPRODUCTION: Steps required to reproduce the bug: Steps to reproduce the behavior:

  1. Create at least 2 posts where each post has one or more images.
  2. Create a page
  3. Add a repeater to the page that lists all the posts on the website
  4. Inside the repeater add a gallery field that show the images of the post and enable the lightbox for the gallery.
  5. Check the result in the frontend

-> The lightbox works for the first gallery but it doesn't for the other galleries on the page

A similar issue was reported in the past and was solved in 3.1, but in my case it's related to a repeater field so it might be a different bug.

KittenCodes commented 3 years ago

Reported internally.

santo74 commented 3 years ago

Ok, thanks for the confirmation.