Open mmattel opened 5 months ago
Could you reproduce in the sandbox by copying the Divi builder generated HTML?
It might be because of incorrect srcset
, or attributes on the <img>
that are copied to the zoomed image element and prevents it from rendering.
@francoischalifour I have written a docs-only PR that fixes the issue. Would be happy if that finds its way into readme.md
Bug description
Trying to make mediumZoom working in the Divi builder I stumble over one issue.
Working Example:
When running mz with Antora (a documentation framework), you add it via
Which results in a working zoomable image, example with the following code from the inspector:
Failing Example with Divi:
Loading the library and initializing mediumZoom:
Note, using
[data-zoomable]
did not work...Adding
data-zoomable
to the imageCSS Class
to make it zoomable.This is the code from the inspector:
Now, the following happens:
medium-zoom-image--hidden
is added to the class containingmedium-zoom-image
✔️I can provide you a temproary view access to my dev site if required.
Expected behavior
mediumZoom should show the zoomed image when using the Divi builder.
Environment
medium-zoom
version: 1.1.0