Insertion markers get disconnected/reconnected before being deleted #7002
Labels
component: insertion marker
issue: bug
Describes why the code or behaviour is wrong
type: regression
Description
When a block is inserted into a stack, the stack is split, and the tail of the stack is reconnected to the bottom of the new block. Unfortunately, this also applies to insertion markers. An insertion marker gets disconnected and reconnected. The corresponding events get broadcast. And this results in errors when undoing and redoing, since there's no block with the ID of the insertion marker.
Reproduction steps
Observe that in addition to the expected events, there's also two events relating to the insertion marker:
Stack trace
Screenshots
Browsers
No response
The text was updated successfully, but these errors were encountered: