Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DanielSwain opened this issue Jun 30, 2020 · 0 comments

Comments

@DanielSwain
Copy link

DanielSwain commented Jun 30, 2020

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.

@DanielSwain DanielSwain changed the title First image stays up when filter revisited BUG: First image stays up when filter revisited if set up with new SimpleLightbox() construct Jun 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant