Text is deleted when undoing a hard break inserted into a heading #11108
Labels
[Block] Heading
Affects the Headings Block
Needs Testing
Needs further testing to be confirmed.
[Type] Bug
An existing feature does not function as intended
Typing a hard return (Enter) in the middle of a heading, then using command+z to undo deletes everything that appeared after the line break:
Typing command+z a second time brings the text back.
Using the backspace key instead of command+z undos the line break in the way I'd expect.
I would expect that typing command-z at this stage would just undo the line break I'd inserted, rather than removing the second paragraph entirely. I'm not certain if this is a bug or expected behaviour—I suspect on a technical level, it's undoing the "create new block" first and then the "break heading", but from a ux perspective, it feels unexpected.
To reproduce:
command+z
.command+z
again to bring the deleted text back.The text was updated successfully, but these errors were encountered: