Skip to content

BUG: First image stays up when filter revisited if set up with new SimpleLightbox() construct #21

@DanielSwain

Description

@DanielSwain

When using the new SimpleLightbox(elements: someFilterValue) construct, if a subset of photos on a page is set up to be viewed by SimpleLightbox, and subsequently another subset is set up with new SimpleLightbox(elements: aDifferentFilterValue), and then the first set is again set up with new SimpleLightbox(elements: someFilterValue), then when the first photo in the first-setup subset of photos is clicked to view in SimpleLightbox, this first photo remains displayed under any photos that are next displayed when the Next or Previous buttons are clicked. This behavior only occurs when using the new SimpleLightbox(elements: someFilterValue) construct to set up the lightbox. If the jQuery construct is used --- $('someFilterValue').simpleLightbox() --- then this error does not occur.

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