Skip to content

Lightbox : Wrong image opened using custom imageTemplate #606

Open
@geoffreyfourmis

Description

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

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions