Open
Description
Description
Adding a template lock can break the block recovery.
This line prevent block recovery:
Step-by-step reproduction instructions
- Create a custom post type with a template
core/group
- Add
template_lock: 'insert'
- Create new custom post type and add a paragraph or whatever
- In the code editor change markup of
core/group
addin something likedata-foo="bar"
- The block is invalid.
- Try to recovery block and nothing happens
Do the same steps on a normal post/page. The recovery works great if you try the recovery on a post/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