Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
miksansegundo opened this issue Feb 5, 2024 · 3 comments
Labels
[Feature] Inserter The main way to insert blocks using the + button in the editing interface [Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") [Type] Bug An existing feature does not function as intended

Comments

@miksansegundo
Copy link
Contributor

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

@miksansegundo miksansegundo added the [Type] Bug An existing feature does not function as intended label Feb 5, 2024
@Mamaduka Mamaduka added [Feature] Inserter The main way to insert blocks using the + button in the editing interface [Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") labels Feb 5, 2024
@ntsekouras
Copy link
Contributor

Thanks for the issue @miksansegundo! I couldn't reproduce on trunk right now 🤔 . @Mamaduka could you reproduce this?

@Mamaduka
Copy link
Member

Mamaduka commented Feb 13, 2024

I can't reproduce it either on the latest trunk (60fc52d) + WP 6.4.x.

I'm unsure which commit fixed it. The #58661 was supposed to be a fix.

Update: Probably was fixed via #58813.

@ellatrix
Copy link
Member

#58813 couldn't have been the fix because it's a different UI that was fixed there. I'm guessing it occurs inconsistently? There's been no fix, so this will probably appear again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Inserter The main way to insert blocks using the + button in the editing interface [Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") [Type] Bug An existing feature does not function as intended
Projects
No open projects
Status: Done
Development

No branches or pull requests

4 participants