MurhafSousli / ngx-gallery

Angular Gallery, Carousel and Lightbox

Home Page:https://ngx-gallery.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lightbox : Wrong image opened using custom imageTemplate

geoffreyfourmis opened this issue · comments

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