mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-21 08:38:19 +08:00
Merge branch 'main' of github.com:ueberdosis/tiptap
This commit is contained in:
commit
408835aafd
@ -111,6 +111,7 @@ export const TaskItem = Node.create<TaskItemOptions>({
|
||||
}
|
||||
})
|
||||
|
||||
listItem.dataset.checked = node.attrs.checked
|
||||
if (node.attrs.checked) {
|
||||
checkbox.setAttribute('checked', 'checked')
|
||||
}
|
||||
@ -132,6 +133,7 @@ export const TaskItem = Node.create<TaskItemOptions>({
|
||||
return false
|
||||
}
|
||||
|
||||
listItem.dataset.checked = updatedNode.attrs.checked
|
||||
if (updatedNode.attrs.checked) {
|
||||
checkbox.setAttribute('checked', 'checked')
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user