Skip to content

Commit

Permalink
check explicit value
Browse files Browse the repository at this point in the history
  • Loading branch information
baseballyama committed Jul 18, 2024
1 parent c297eee commit 0f4c85d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/extension-task-item/src/task-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const TaskItem = Node.create<TaskItemOptions>({
parseHTML: element => {
const dataChecked = element.getAttribute('data-checked')

return dataChecked != null && dataChecked !== 'false'
return dataChecked == null || dataChecked === 'true'
},
renderHTML: attributes => ({
'data-checked': attributes.checked,
Expand Down

0 comments on commit 0f4c85d

Please sign in to comment.