Skip to content

Commit cbe41af

Browse files
committed
remove task list
1 parent 5504800 commit cbe41af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/super-editor/src/core/inputRules/wrappingInputRule.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export function wrappingInputRule(config) {
3939
}
4040
if (config.keepAttributes) {
4141
/** If the nodeType is `bulletList` or `orderedList` set the `nodeType` as `listItem` */
42-
const nodeType = config.type.name === 'bulletList' || config.type.name === 'orderedList' ? 'listItem' : 'taskList';
42+
const nodeType = config.type.name === 'bulletList' || config.type.name === 'orderedList' ? 'listItem' : config.type.name;
4343

4444
chain().updateAttributes(nodeType, attributes).run();
4545
}

0 commit comments

Comments
 (0)