Skip to content
This repository was archived by the owner on Jul 9, 2026. It is now read-only.
This repository was archived by the owner on Jul 9, 2026. It is now read-only.

The Gallery Image Caption text formatting options disappear #3511

Closed
WordPress/gutenberg
#32351

Description

@antonis

Describe the bug
The image gallery caption formatting toolbar disappears when moving focus between image captions

To Reproduce
Steps to reproduce the behavior:

  1. Add a Gallery block
  2. Add some images to your gallery
  3. Set some captions to the images
  4. Move the focus between image gallery captions
  5. Notice that the formatting toolbar disappears
  6. Add a paragraph block
  7. Move the focus between image gallery captions
  8. Move the focus to the paragraph
  9. Notice that the formatting toolbar is still missing

Expected behavior
The user is able to format captions on image galleries

Screenshots

Expected (Android) Actual is missing text formatting toolbar (Android) Recording(iOS)

Smartphone (please complete the following information):

  • Device: Pixel 2 XL, iPhone SE
  • OS: Android 11.0, iOS 14.4
  • Version Gutenberg Mobile 1.53.0

Activity

  1. mkevins commented on May 18, 2021

    @mkevins
    Contributor

    I have confirmed this as well, and noted also that after applying a revert described here: #3510 (comment) that the same issue occurs on the gallery caption, when focus is changed.

  2. antonis commented on May 18, 2021

    @antonis
    Author

    As pointed out by @mkevins after the issue is triggered with the gallery block image captions it persists on other rich text blocks (e.g. paragraph block or quote block).
    If I create a new paragraph block at this point or focus on the title the toolbar is back.

    Paragraph Block Quote block
    device-2021-05-18-123958 device-2021-05-18-124143
  3. AmandaRiu commented on May 18, 2021

    @AmandaRiu
    Contributor

    As pointed out by @mkevins after the issue is triggered with the gallery block image captions it persists on other rich text blocks (e.g. paragraph block or quote block).
    If I create a new paragraph block at this point the toolbar is back.

    While testing this PR that reverts the commit mentioned I can confirm the issues in this ticket still persist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [OS] Android[OS] iOS[Type] Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions