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

Post editor: Missing Back button to go back from template editing #56194

Closed
afercia opened this issue Nov 16, 2023 · 1 comment · Fixed by #56217
Closed

Post editor: Missing Back button to go back from template editing #56194

afercia opened this issue Nov 16, 2023 · 1 comment · Fixed by #56217
Assignees
Labels
[Feature] Template Editing Mode Related to the template editor available in the Block Editor [Package] Edit Post /packages/edit-post [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@afercia
Copy link
Contributor

afercia commented Nov 16, 2023

Description

Discovered while looing into #56150 as I wanted to check if a similar problem occurs in the Post editor as well.

This appears to be a regression in trunk. I think it's a side effect of #56150
Cc @jeryj

Step-by-step reproduction instructions

  • Test with WordPress 6.4
  • Edit a post.
  • In the setting panel, click the current template. A popover open. Click 'Edit template'. Screenshot:

Screenshot 2023-11-16 at 10 39 48

  • The editor switches to a 'Edit template' mode.
  • Observe in the top bar there is a 'Back' button to switch back to the normal Post editor mode.
  • Observe that whatever you do, the 'Back' button stays there. Screenshot:

Screenshot 2023-11-16 at 10 51 41

  • Test with latest Gutenberg trunk.
  • Repeat the steps above.
  • Observe that as soon as you click something within the editor, the Back button and the Command center button disappeaer. Screenshot:

Screenshot 2023-11-16 at 10 52 27

  • At this point, I'm not sure there is a way to switch back to the normal view other than refreshing the page.

Screenshots, screen recording, code snippet

No response

Environment info

No response

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

@afercia afercia added [Type] Bug An existing feature does not function as intended [Package] Edit Post /packages/edit-post [Feature] Template Editing Mode Related to the template editor available in the Block Editor labels Nov 16, 2023
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Nov 16, 2023
@jeryj
Copy link
Contributor

jeryj commented Nov 16, 2023

Thanks for catching this and explaining the issue so clearly! You were right about the cause. #56217 should address it 🤞🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Template Editing Mode Related to the template editor available in the Block Editor [Package] Edit Post /packages/edit-post [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants