Skip to content

Commit

Permalink
fix: add taskItem dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Palanikannan1437 committed Jan 3, 2025
1 parent ab02542 commit 26f3442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/editor/src/core/hooks/use-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export const useEditor = (props: CustomEditorProps) => {
}
}
}
}, [editor?.getJSON(), editor?.isActive("listItem"), hasMigrated]);
}, [editor?.getJSON(), editor?.isActive("listItem"), editor?.isActive("taskItem"), hasMigrated]);

// Update the ref whenever savedSelection changes
useEffect(() => {
Expand Down

0 comments on commit 26f3442

Please sign in to comment.