mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-20 08:02:35 +02:00
fix: todo uncheck (#6126)
This commit is contained in:
@@ -62,7 +62,10 @@ export function FlowRoadmapRenderer(props: FlowRoadmapRendererProps) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const handleTopicRightClick = useCallback((e: MouseEvent, node: Node) => {
|
const handleTopicRightClick = useCallback((e: MouseEvent, node: Node) => {
|
||||||
const target = e?.currentTarget as HTMLDivElement;
|
const target =
|
||||||
|
node?.type === 'todo'
|
||||||
|
? document.querySelector(`[data-id="${node.id}"]`)
|
||||||
|
: (e?.currentTarget as HTMLDivElement);
|
||||||
if (!target) {
|
if (!target) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@@ -161,7 +161,10 @@ export function MemberCustomProgressModal(props: ProgressMapProps) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const target = e?.currentTarget as HTMLDivElement;
|
const target =
|
||||||
|
node?.type === 'todo'
|
||||||
|
? document.querySelector(`[data-id="${node.id}"]`)
|
||||||
|
: (e?.currentTarget as HTMLDivElement);
|
||||||
if (!target) {
|
if (!target) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -237,7 +240,6 @@ export function MemberCustomProgressModal(props: ProgressMapProps) {
|
|||||||
<div className="px-4 pb-2">
|
<div className="px-4 pb-2">
|
||||||
<ReadonlyEditor
|
<ReadonlyEditor
|
||||||
variant="modal"
|
variant="modal"
|
||||||
hasMinimap={false}
|
|
||||||
roadmap={roadmap!}
|
roadmap={roadmap!}
|
||||||
className="min-h-[400px]"
|
className="min-h-[400px]"
|
||||||
onRendered={() => {
|
onRendered={() => {
|
||||||
|
Reference in New Issue
Block a user