Post editor crashes when clearing customizations in template editing mode. #44481
Labels
[Feature] Template Editing Mode
Related to the template editor available in the Block Editor
[Type] Bug
An existing feature does not function as intended
Description
When editing the template for a new post from the post sidebar, saving changes to the template and then clicking "clear customizations" in the top toolbar causes the editor to crash.
I've reproduced this several times, and there are two different errors that alternately appear in the console:
Uncaught TypeError: Cannot read properties of null (reading 'removeEventListener')
in the<BlockPopoverInbetween>
componentand
Uncaught TypeError: Cannot read properties of null (reading 'title')
in theBlockParentSelector
component.Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
I can reproduce this both on Gutenberg trunk (running on 6.1-alpha-53810) and wordpress-develop trunk, so whatever is causing the issue must have already been backported to Core. I can't reproduce it on Gutenberg 14.1.1 running on WP 6.0.2.
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
The text was updated successfully, but these errors were encountered: