jossmac / jossmac/react-images

[Feature request] Support for multiple modals/galleries on a page

Open
#380 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.3k
Forks
433
PR merge metrics
No merged PRs in 30d

Description

When adding 2 or more modals/carousels on a page there is a conflict. Can the instances (states?) have a property where they can be assigned a unique identifier?

Expected: When clicking a thumbnail for one of two or more galleries the image the image appearing in the lightbox should be the same as the image in thumbnail.

Actual: The image which appears is from the last gallery on the page regardless of which gallery is clicked on.

Example:
https://codesandbox.io/s/react-photo-gallery-with-image-viewer-gcsq8

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.