Skip to content

ToolsPanel: Dimensions panel appears empty at first when duplicating a block with Dimensions #34724

Closed

Description

@andrewserong

Description

While testing #34065, I noticed that if we duplicate a block that uses the Dimensions Panel, when the block is copied, the Dimensions panel appears to be empty. If you click away from the panel and back to it, it is no longer empty.

A possible culprit to investigate: when we duplicate the block, perhaps there isn't a clientId available yet when registering the ToolsPanel?

Step-by-step reproduction instructions

  1. In a post, add a block that uses the Dimensions panel (E.g. a Group block) and set a value for padding
  2. Copy the block
  3. Paste the block elsewhere in your post
  4. Notice that the Dimensions panel appears to be empty
  5. Click away to another block, then click back to the block you duplicated
  6. Notice that the Dimensions panel is no longer empty

Screenshots, screen recording, code snippet

Screenshot from testing with the Cover block in #34065

cover-block-tools-panel-sml

Environment info

TT1-Blocks theme
Gutenberg trunk

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

Activity

  1. added
    [Type] Bug
    [Feature] Design Tools
    on Sep 10, 2021
  2. added
    [Status] In Progress
    on Sep 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

[Feature] Design Tools[Status] In Progress[Type] Bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions