Skip to content

Commit

Permalink
fix: Use undefined for type attribute default (#5491)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhemmings authored Aug 14, 2024
1 parent da76972 commit c36e4c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/ordered-list-type-attr-undefined.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tiptap/extension-ordered-list": patch
---

fix: Use undefined for type attribute default
2 changes: 1 addition & 1 deletion packages/extension-ordered-list/src/ordered-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const OrderedList = Node.create<OrderedListOptions>({
},
},
type: {
default: null,
default: undefined,
parseHTML: element => element.getAttribute('type'),
},
}
Expand Down

0 comments on commit c36e4c3

Please sign in to comment.