From 48cd7e6481e87bc734b827b0831c9d02124545cc Mon Sep 17 00:00:00 2001 From: hjlarry Date: Tue, 23 Sep 2025 14:48:31 +0800 Subject: [PATCH] input comment should not cancel comment mode --- web/app/components/workflow/hooks/use-workflow-comment.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/web/app/components/workflow/hooks/use-workflow-comment.ts b/web/app/components/workflow/hooks/use-workflow-comment.ts index 93c11f1d4c..5b65023d25 100644 --- a/web/app/components/workflow/hooks/use-workflow-comment.ts +++ b/web/app/components/workflow/hooks/use-workflow-comment.ts @@ -113,19 +113,16 @@ export const useWorkflowComment = () => { await loadComments() setPendingComment(null) - setControlMode(ControlMode.Pointer) } catch (error) { console.error('Failed to create comment:', error) setPendingComment(null) - setControlMode(ControlMode.Pointer) } - }, [appId, pendingComment, setControlMode, setPendingComment, loadComments, reactflow]) + }, [appId, pendingComment, setPendingComment, loadComments, reactflow]) const handleCommentCancel = useCallback(() => { setPendingComment(null) - setControlMode(ControlMode.Pointer) - }, [setControlMode, setPendingComment]) + }, [setPendingComment]) const handleCommentIconClick = useCallback(async (comment: WorkflowCommentList) => { setPendingComment(null)