Skip to content

Editor freezes/crashes when inserting a reusable block twice #64514

@rfischmann

Description

@rfischmann

Description

When inserting a reusable block, converting it to a normal/editable block, and then trying to insert the same reusable block again, the editor freezes/crashes.

The editor will freeze when a synced pattern (née reusable block) that contains a File block with Show download button disabled.

Step-by-step reproduction instructions

  1. Insert a reusable block in a post.
  2. Convert the reusable block to a normal/editable block.
  3. Try to insert the same reusable block again.

 

  1. Create a new post.
  2. Add a File block and upload a file.
  3. Toggle Show download button off.
  4. Select File block, open Options menu, select Create pattern.
  5. Name the pattern.
  6. Editor will freeze/hang.

Screenshots, screen recording, code snippet

No response

Environment info

WordPress 6.6.1
Tried and was able to reproduced the issue on Firefox, Edge and Safari

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] FileAffects the File Block[Feature] PatternsA collection of blocks that can be synced (previously reusable blocks) or unsynced[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions