Skip to content

Group block no longer can be edited upon drag & drop in editor window #83399

Description

@mbgoins-create

Description

This was reported by a user of our WordPress service where they would accidentally grab a group block within the editor window and move it (similar to trying to move blocks within the List View); however upon releasing their left mouse button the group block itself would become 'locked' and you could no longer select content within it including editing text within a paragraph block.

I have been able to replicate this error using our custom WordPress theme as well as the Twenty Twenty-Five theme in a local install, as well as on our servers.

There was a secondary issue that is harder to reproduce, which has the selected group block shrinking and remaining in that shrunken view. This is all reset upon doing a refresh of the browser window.

Step-by-step reproduction instructions

  1. Create content (specifcally, several paragraph blocks or use a pattern to add that content) and group it together. Set your group block Align setting to be Full width.
  2. Within the editor area, click the area of the group block outside of your text so you get the 'grab handle' hand icon. That will select the group block.
  3. Drag the group block around within your editor window and then release it. Please note that this isn't an exact science and it takes a few tries to bug it out. Once is sometimes not enough.
  4. Once you release your mouse button, check to see if you can select any content (such as text) within that group block, and attempt to add or delete a character.
  5. What you will experience when the bug hits is that that specific group block is no longer editable.

Screenshots, screen recording, code snippet

I have created a screen recording of recreating this bug using the WordPress Playground (https://playground.wordpress.net/).

https://mediaspace.wisc.edu/media/Group+Block+Bug/1_g8isdgwy

Environment info

  • Using WordPress Playground (https://playground.wordpress.net/), which is using WordPress version 7.1.2.
  • Using the Twenty Twenty-Five theme
  • Using Microsoft Edge (Version 153.0.4234.48 (Official build) (64-bit)) - thought this has been recreated using Firefox and Chrome in most recent versions.
  • Using Windows 11, though coworkers have also recreated it using MacOS.

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

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Activity

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

    Needs TestingNeeds further testing to be confirmed.[Feature] Drag and DropDrag and drop functionality when working with blocks[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions