We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9dffdb commit 444c009Copy full SHA for 444c009
packages/core/src/blocks/ListItemBlockContent/ListItemKeyboardShortcuts.ts
@@ -10,7 +10,13 @@ export const handleEnter = (editor: Editor) => {
10
const selectionEmpty =
11
editor.state.selection.anchor === editor.state.selection.head;
12
13
- if (!contentType.name.endsWith("ListItem") || !selectionEmpty) {
+ if (
14
+ !(
15
+ contentType.name === "bulletListItem" ||
16
+ contentType.name === "numberedListItem"
17
+ ) ||
18
+ !selectionEmpty
19
+ ) {
20
return false;
21
}
22
0 commit comments