-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Customize Widgets: Editor hides when selecting some blocks #62898
Comments
I ran a From manually reverting part of that PR (just the addition of @Mamaduka do you have an idea why the strict mode might affect this, and/or what a potential fix might be? I don't know much about strict mode, so that PR being the cause seemed a bit of a surprise to me! |
Also, I double-checked and #61943 wasn't included in WP 6.6, and this feature appears to be working fine in 6.6 RC 1, so it looks like it's just Gutenberg that's affected. |
It's probably related to the way strict mode re-runs effects to find bugs - https://react.dev/reference/react/StrictMode#fixing-bugs-found-by-re-running-effects-in-development. So there might be an effect that works ok when it's run once, but the second run causes this issue. The good thing is that it won't be an issue for production versions of code. |
Thanks for the ping! Yeah, it's probably an effect or non-pure component issue, which StrictMode just highlighted. I fixed some bugs that the e2e tests caught. I am assigning this to myself and will have a look later. |
Thanks so much! |
Description
The customize widgets editor disappears leaving only a grey panel when selecting some blocks (paragraph works ok, blocks like image or latest posts cause an issue)
Step-by-step reproduction instructions
Expected:

The block is selected and is still visible:
Actual:
The editor disappears like this:
Kapture.2024-06-27.at.12.19.38.mp4
Or maybe more like this:

Screenshots, screen recording, code snippet
No response
Environment info
It seems to only happen with the Gutenberg plugin active. It's ok when I check WP6.6
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
The text was updated successfully, but these errors were encountered: