fix: Use undefined for type attribute default (#5491)

This commit is contained in:
Mark Hemmings 2024-08-14 19:50:11 +01:00 committed by GitHub
parent da76972998
commit c36e4c3afc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
"@tiptap/extension-ordered-list": patch
---
fix: Use undefined for type attribute default

View File

@ -85,7 +85,7 @@ export const OrderedList = Node.create<OrderedListOptions>({
},
},
type: {
default: null,
default: undefined,
parseHTML: element => element.getAttribute('type'),
},
}