Closed karimhossenbux closed 7 years ago
That's interesting, thanks for pointing that out!
Can you please share your HTML template?
Actually I've been able to fix that by targeting the parent container (where there is no svg), and not the img tag itself. I'll try to make more test once back on that project!
Hi @karimhossenbux, a similar issue was raised #8.
It is indeed a bug and I will publish a fix very soon (https://github.com/francoischalifour/medium-zoom/issues/8#issuecomment-305030768).
Thank you again 😄
Closing for now as it should be fixed with aa8ff0f.
Please upgrade to 1.0.4 and let me know if you have other issues.
It would be awesome if we could set SUPPORTED_FORMATS as we need.
Right now medium-zoom is enable on some SVG icons I have even if I target img tag:
mediumZoom(document.querySelectorAll('.content img'))
Let me know what you think?
Cheers!