MurhafSousli / ngx-gallery

Angular Gallery, Carousel and Lightbox
https://ngx-gallery.netlify.app/
MIT License
596 stars 126 forks source link

Lightbox : Wrong image opened using custom imageTemplate #606

Open geoffreyfourmis opened 3 months ago

geoffreyfourmis commented 3 months ago

What is the expected behavior?

Using lightbox with custom imageTemplate, when I click on one image I want to be the one who show up.

What is the current behavior?

It's always the first image which is displayed

What are the steps to reproduce?

https://stackblitz.com/edit/ngx-gallery-tqm5cg?file=src%2Fmain.ts Click on image number 2, 3 or 4. It's always the first one who shows up

What is the use-case or motivation for changing an existing behavior?

The goal is to add a custom toolbar at the bottom (download, edit, delete action)

Which versions are you using for the following packages?

See stackblitz but there is the same behaviour using V11 or V12 of ngx-gallery

MurhafSousli commented 3 months ago

Reproduction with v12 beta