You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've come across a bug when making an amp-image-gallery with thumbnails, connected to the action on the thumbnail itself. The 2rd time the gallery is opened, the image that shows up in the lightbox, is the one prior to the image the thumbnail depicts.
Note: this issue only comes up when using thumbnails, and everything works fine if you just use full-size images with the lightbox attribute instead of thumbnails.
@sebastianbenz on slack advised that I filed this as a bug,
I made an example on my fork and can reproduce the issue. Setting a breakpoint on enter_() reveals the expected sourceElement but the prior image gets displayed.
Description
I've come across a bug when making an amp-image-gallery with thumbnails, connected to the action on the thumbnail itself. The 2rd time the gallery is opened, the image that shows up in the lightbox, is the one prior to the image the thumbnail depicts.
Note: this issue only comes up when using thumbnails, and everything works fine if you just use full-size images with the lightbox attribute instead of thumbnails.
@sebastianbenz on slack advised that I filed this as a bug,
Reproduction Steps
https://codepen.io/sunturion/pen/eYvRxKY
Relevant Logs
No response
Browser(s) Affected
Chrome, Firefox, Edge
OS(s) Affected
No response
Device(s) Affected
No response
AMP Version Affected
No response
The text was updated successfully, but these errors were encountered: