We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5504800 commit cbe41afCopy full SHA for cbe41af
1 file changed
packages/super-editor/src/core/inputRules/wrappingInputRule.js
@@ -39,7 +39,7 @@ export function wrappingInputRule(config) {
39
}
40
if (config.keepAttributes) {
41
/** 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';
+ const nodeType = config.type.name === 'bulletList' || config.type.name === 'orderedList' ? 'listItem' : config.type.name;
43
44
chain().updateAttributes(nodeType, attributes).run();
45
0 commit comments