Skip to content

Lightbox/Carousel not working as expected  #34266

@thomasgreen

Description

@thomasgreen

What's the issue?

Lightbox / Carousel aren't working, images are printed inline and not into a gallery lightbox. A console error reads Error: amp-carousel is already registered. The script tag for amp-carousel is likely included twice in the page.​​​

How do we reproduce the issue?

AMP Playground Link

Click on the first image, and then scroll down. The image should load in the lightbox gallery but instead, all images are loading sequentially and not in a carousel or lightbox.

(The code for the above snippet is taken from https://raw.githubusercontent.com/sparhami/amphtml/c07f8fe445018bcdb5b643e40741b49b735ca783/examples/article-with-lightbox-2.0-gallery.amp.html)

What browsers are affected?

Tested in Chrome and Firefox.

Which AMP version is affected?

Version 2104240357000

This is a new issue we only noticed yesterday.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions