Describe the bug
When switching between the post editor and template editing modes, the changes aren't properly discarded.
To reproduce
Steps to reproduce the behavior:
- Install Gutenberg 9.6+ and a FSE ready theme.
- Go to Posts > Add New
- Make some changes to the post > Publish or Save Draft
- Use the option to edit the template to switch into template editing mode in the document settings section.
- Make some changes to the header, footer, and post content.
- Select "Apply" and only select the changes to the post content to save. Confirm that decision
- You'll then be brought back to the post editor but see "Update" instead of "Publish"
- If you select "Update", it then brings you to a screen to save the changes previously not selected in the various template parts. There's not a way to dismiss these and if you try to navigate away, you're notified that you'll lose changes.
Expected behavior
I expect changes to be discarded.
Screenshots
Here's a short video talking through this experience: https://cloudup.com/ckTQ5chiQWM
Editor version (please complete the following information):
- WordPress version: 5.6
- Does the website has Gutenberg plugin installed, or is it using the block editor that comes by default? Gutenberg
- If the Gutenberg plugin is installed, which version is it? 9.6.2
Desktop (please complete the following information):
- OS: MacOS
- Browser: Chrome
- Version:87.0.4280.88
Describe the bug
When switching between the post editor and template editing modes, the changes aren't properly discarded.
To reproduce
Steps to reproduce the behavior:
Expected behavior
I expect changes to be discarded.
Screenshots
Here's a short video talking through this experience: https://cloudup.com/ckTQ5chiQWM
Editor version (please complete the following information):
Desktop (please complete the following information):