diff --git a/.changeset/ordered-list-type-attr-undefined.md b/.changeset/ordered-list-type-attr-undefined.md new file mode 100644 index 000000000..90c3a6e12 --- /dev/null +++ b/.changeset/ordered-list-type-attr-undefined.md @@ -0,0 +1,5 @@ +--- +"@tiptap/extension-ordered-list": patch +--- + +fix: Use undefined for type attribute default diff --git a/packages/extension-ordered-list/src/ordered-list.ts b/packages/extension-ordered-list/src/ordered-list.ts index 1f9f4f975..ed2a45904 100644 --- a/packages/extension-ordered-list/src/ordered-list.ts +++ b/packages/extension-ordered-list/src/ordered-list.ts @@ -85,7 +85,7 @@ export const OrderedList = Node.create({ }, }, type: { - default: null, + default: undefined, parseHTML: element => element.getAttribute('type'), }, }