Skip to content

Pattern Inserter: the panel re-renders after inserting a pattern and doesn't close after clicking on canvas #58665

@miksansegundo

Description

@miksansegundo

Description

The pattern inserter panel re-renders multiple times after inserting a pattern and does not close after clicking on the canvas.

Step-by-step reproduction instructions

  • Make sure Gutenberg 17.6 is activated
  • Visit the site editor
  • Open the Pattern Inserter "[+]" from the top bar
  • Click the "About" category and then click on any pattern
  • Expect to see the panel flashing multiple times
  • Click on any block on the editor canvas
  • Expect to see the panel flashing multiple times again when it should close
  • Deactivate Gutenberg 17.6 and repeat the steps to verify the issue is not reproducible

Screenshots, screen recording, code snippet

Screen Capture on 2567-02-05 at 18-15-19

Environment info

  • WordPress 6.4
  • Gutenberg 17.6
  • Google Chromer 120
  • MacOS Sonoma 14.1.1

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

    [Feature] InserterThe main way to insert blocks using the + button in the editing interface[Feature] Site EditorRelated to the overarching Site Editor (formerly "full site editing")[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