Skip to content

Commit

Permalink
fix: add missing HTMLAttributes to task list, fix #2042
Browse files Browse the repository at this point in the history
  • Loading branch information
philippkuehn committed Oct 15, 2021
1 parent 808d32f commit 7503d1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/extension-task-list/src/task-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const TaskList = Node.create<TaskListOptions>({
},

renderHTML({ HTMLAttributes }) {
return ['ul', mergeAttributes(HTMLAttributes, { 'data-type': 'taskList' }), 0]
return ['ul', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes, { 'data-type': 'taskList' }), 0]
},

addCommands() {
Expand Down

0 comments on commit 7503d1b

Please sign in to comment.