Skip to content

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

@jpkelly

Description

@jpkelly

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions