fix switch to cursor mode comment input still exists

This commit is contained in:
hjlarry 2025-10-09 16:36:20 +08:00
parent d05ba90779
commit 517f8aafdc
1 changed files with 5 additions and 0 deletions

View File

@ -124,6 +124,11 @@ export const useWorkflowComment = () => {
setPendingComment(null)
}, [setPendingComment])
useEffect(() => {
if (controlMode !== ControlMode.Comment)
setPendingComment(null)
}, [controlMode, setPendingComment])
const handleCommentIconClick = useCallback(async (comment: WorkflowCommentList) => {
setPendingComment(null)