This commit is contained in:
Kasper Nilsson 2022-02-02 15:08:27 -08:00 committed by Dominik
parent 8874e5e5e6
commit eda8d801b5

View File

@ -109,7 +109,7 @@ export const TaskItem = Node.create<TaskItemOptions>({
checkbox.addEventListener('change', event => {
// if the editor isnt editable and the item isn't checkable
// we have to undo the latest change
if (!editor.isEditable && !checkable) {
if (!editor.isEditable && !this.options.checkable) {
checkbox.checked = !checkbox.checked
return