Pattern Inserter: Multiple undo histories are created #63479
Labels
[Feature] Inserter
The main way to insert blocks using the + button in the editing interface
[Feature] Patterns
A collection of blocks that can be synced (previously reusable blocks) or unsynced
[Type] Bug
An existing feature does not function as intended
Description
When I insert a pattern, multiple undo histories are created, so I cannot delete a pattern unless I press the Undo button several times after inserting it. The amount of history created depends on the pattern inserted.
I looked back through the commit history and it looks like this issue first appeared in #61915.
Step-by-step reproduction instructions
After inserting a pattern, click the Undo button.
Screenshots, screen recording, code snippet
Before #61915
before.mp4
After #61915
after.mp4
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
The text was updated successfully, but these errors were encountered: