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

Zooms aren't removed from dom on close event #166

Open
hannahmumma-zz opened this issue Jan 27, 2021 · 0 comments
Open

Zooms aren't removed from dom on close event #166

hannahmumma-zz opened this issue Jan 27, 2021 · 0 comments

Comments

@hannahmumma-zz
Copy link

Bug description

A clear and concise description of what the bug is.
I have two triggers I'm using for multiple zooms. The first is on the image itself and the second is on an open button. When I open and close the zoom on the zoom image click everything is fine. When I open and close the zoom on the open/close button everything appears to be fine. But as I go back to triggering the zoom on zoom image click, all the other zooms I opened with the open button click are there in the dom.

How to reproduce

A list of the steps to reproduce the bug.

  1. Run mediumZoom(selector, options)
  2. Click on the image
  3. See error

Expected behavior

Zooms to be completely cleared out after each zoom.close() call.

Reproducible example

Link to the bug reproduction

Environment

  • Browser: name / version
  • medium-zoom version:
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