Navigation Link - undo trap when added to inner block controllers via patterns. #33908
Closed
3 tasks done
Labels
[Block] Navigation Link
Affects the Navigation Link Block
[Type] Bug
An existing feature does not function as intended
Description
Inserting a block pattern that contains navigation-link components inside an inner block controller (such as a template part or reusable block) creates an undo trap. After the pattern with the navigation link is added, it is no longer possible to undo any previous actions.
Example of the navigation section of a problematic pattern:
related - #8119
Step-by-step reproduction instructions
lib/block-patterns.php
). an example of a pattern to add for in the array inlib/block-patterns.php
:Similarly, this can be reproduced in the post editor by adding this pattern inside a reusable block.
Expected Behavior
The 'undo' to work as expected, leading us back to the placeholder and any previous actions:
Current Behavior
The undo action does not work:
Is there an existing issue for this?
Have you tried deactivating all plugins except Gutenberg?
Have you tried replicating the bug using a default theme e.g. Twenty Twenty?
The text was updated successfully, but these errors were encountered: