-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Open
Labels
[Feature] SavingRelated to saving functionalityRelated to saving functionality[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
We added some additional controls to the header and footer template parts through BlockEdit filters, and they work when editing the template, but not when you're in the "post" mode.
Step-by-step reproduction instructions
- Add additional controls to the template part block using the BlockEditor hook.
- Open the site editor, and attempt to use these controls when the post content is rendered / visible on the page.
- They should register as changed in the block editor store - if you check
getSelectedBlock()in the inspector console, you'll see your attributes added to the returned block object. However, the "Save" button at the top does not become enabled. Even if you make some other change, like say rename the header block, your added controls are not saved to the end result.
- They should register as changed in the block editor store - if you check
- Now go into the site editor navigation and select a specific page template to edit and use those same controls.
- you should see that the controls behave normally - they enable the save button and after saving and reload, persist.
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
Please confirm which theme type you used for testing.
- Block
- Classic
- Hybrid (e.g. classic with theme.json)
- Not sure
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
[Feature] SavingRelated to saving functionalityRelated to saving functionality[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended