gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Expand on click lightbox is activated on subsequent block images

Open JosVelasco opened this issue 3 years ago • 5 comments

Description

If the Expand on click option is activated for a block image, the subsequent image blocks will enable this function even if the switch is not selected.

The blocks above the one that has the lightbox activated won't have this function activated.

Step-by-step reproduction instructions

  1. Insert one image block.
  2. Insert another image block and enable the Expand on click option.
  3. Insert another image block without enabling the Expand on click option.
  4. Confirm the third image block has the lightbox enabled on the front-end.

Screenshots, screen recording, code snippet

https://youtu.be/HDP4VCMt5CA

Environment info

  • WP 6.4-RC1 and Gutenberg Version 16.8.1 activated. Twenty Twenty-Three theme.
  • Chrome 118.0.5993.88 (Build oficial) (arm64)
  • MacBook with Sonoma 14.0

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

JosVelasco avatar Oct 18 '23 23:10 JosVelasco

I can confirm this is happening for me and give a bit more details from testing. This seems to be only happening using the Gutenberg plugin so something not in 6.4 but since the merge there.

karmatosed avatar Oct 19 '23 11:10 karmatosed

This happened to me yesterday in my 6.4 walk-through, and I was running the same installation as reported.

colorful-tones avatar Oct 19 '23 12:10 colorful-tones

Note: this issue is not happening with latest Gutenberg trunk.

colorful-tones avatar Oct 19 '23 14:10 colorful-tones

It seems like this was addressed in #55120. However, if we want the Lightbox roll-out to be successful then I would prioritize cherry-picking that into a release (if possible) before the final WP 6.4 lands.

@karmatosed @mikachan for visibility.

colorful-tones avatar Oct 19 '23 14:10 colorful-tones

and @mikachan is already ahead of us all! She cherry-picked the change already. 👏

Closing this out.

colorful-tones avatar Oct 19 '23 14:10 colorful-tones