Automattic / Automattic/jetpack

Linking single image to gallery carousel view breaks if clicked > once

Open
#6,139 4 comments 0 reactions 0 assignees View on GitHub
[Feature] Carousel [Pri] Normal Bug Customer Report [LEGACY]
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

To reproduce:

1. Enable Carousel.
2. Create a new page with a gallery of images.
3. Elsewhere on the page, insert a standalone image that links to a carousel URL from the gallery. Example: `http://example.com/2016/12/the-permalink-here/#jp-carousel-123`.
4. Publish page and open it.
5. Click the standalone image. The carousel view of the gallery opens as expected.
6. Close out of the carousel view.
7. Click the standalone image again. Nothing happens.

It also "works" in reverse. If you click the gallery first instead of the standalone image, carousel opens. But then if you close it and click the single image, nothing happens.

3004435-t

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the two click sequences with Carousel enabled, using the standalone image URL ending in #jp-carousel-123. Inspect the carousel and standalone-image click handling to find why closing one view prevents the other from opening; done means both sequences reopen the gallery reliably.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, wordpress
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.