Skip to content

Lightbox gallery always show first image. #6489

@milindmore22

Description

@milindmore22

Bug Description

If a page/post has multiple images and all images are opted-in for AMP Lightbox, clicking on any image shows/focus the first image on the page.

Expected Behaviour

The clicked image should be opened up/focused in the lightbox gallery.

Steps to reproduce

  1. Create a Post
  2. Add 3-4 images and Opt-in for Lightbox
  3. Open Same Post's AMP endpoint
  4. Scroll down and click 2nd, 3rd, or 4th image
  5. The first Image shows up.

Screenshots

https://recordit.co/bIdEHsi0gI

Additional context

  • WordPress version: 5.8
  • Plugin version: 2.1.3
  • Gutenberg plugin version (if applicable): not active
  • AMP plugin template mode: Transitional Mode
  • PHP version: 7.4
  • OS: Mac OS Catlina
  • Browser: Chrome
  • Device: MacBook Air

Test URL (it will last for 6 days ): https://particular-copperhead.jurassic.ninja/2021/07/26/image-test-gutenberg-deactivated/amp/


Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

Implementation brief

QA testing instructions

Demo

Changelog entry

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingUpstream BugRequires an upstream change from WordPress, Gutenberg, or another dependency.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions