When I a cut (ctrl+x) a section in Slate that contains a list, sometimes the leftover node remains a 'list-item' and is not a 'paragraph'. This typically happens if the last marked node type is a list or the last marked node does not contain any text and the node before it is a list.
A similar problem occurs when you select elements that start with nested elements (such as a list) when trying to delete (by pressing the Backspace key).
What's the current behavior?
When I a cut (ctrl+x) a section in Slate that contains a list, sometimes the leftover node remains a 'list-item' and is not a 'paragraph'. This typically happens if the last marked node type is a list or the last marked node does not contain any text and the node before it is a list.
It happens in production: https://www.slatejs.org/examples/richtext
Slate: 0.58.4 Browser: Chrome OS: Windows
What's the expected behavior?
The leftover node becomes a 'paragraph' and not a 'list-item'