-
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
Site Editor: Template part is missing after exiting focus mode #36937
Comments
@kevin940726, I remember you worked on this feature. Any ideas why this might be happening? |
I did the bisecting and found the first bad commit is coming from #36340. I have no idea why though. The problem goes away if I commented out this part: 5458edc#diff-884dae78f1676d454c049107e9b05b2403eb042457f77f836bd170d104396b8bR226-R233 Maybe @tellthemachines knows why? |
Thanks for the follow-up, @kevin940726. |
No idea, but that code's specific to the navigation block. Does this issue happen with any template part or only one that contains a navigation? |
Answering my own question above 😅, I can reproduce this on latest trunk with any template part, whatever it contains. I'm also seeing a few PHP notices when loading the editor, not sure if they may be related:
|
Thanks for looking at the problem, @tellthemachines. The PHP notices should be fixed now, but I don't think those are the cause. |
The symptoms here look suspiciously like the ones in #36788. Could be related. |
Hi folks, I tried to debug this issue but failed 😞 Here are my findings so far:
|
Pinging @WordPress/gutenberg-core for technical feedback. |
When switching into focus mode to edit the template part, it's missing after going back to the template using the "Back" button.
Step-by-step reproduction instructions
Screenshot
CleanShot.2021-11-28.at.23.55.06.mp4
I tested with TT1 Blocks and TT2 themes.
The text was updated successfully, but these errors were encountered: