1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-30 18:39:51 +02:00
This commit is contained in:
Ziad Beyens
2019-12-02 02:17:21 +01:00
committed by Ian Storm Taylor
parent a72d21225e
commit 357e3b8547

View File

@@ -85,7 +85,7 @@ const withShortcuts = editor => {
) {
Editor.setNodes(editor, { type: 'paragraph' })
if (match.type === 'list-item') {
if (block.type === 'list-item') {
Editor.unwrapNodes(editor, { match: { type: 'bulleted-list' } })
}