Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

Fix: event of click away in message-log-modal (#3828)

KVOJJJin3d14aba4b494
diff --git a/web/app/components/workflow/nodes/_base/components/editor/base.tsx b/web/app/components/workflow/nodes/_base/components/editor/base.tsx
index 4f058ca6ea0..2f493b4c17b 100644
--- a/web/app/components/workflow/nodes/_base/components/editor/base.tsx
+++ b/web/app/components/workflow/nodes/_base/components/editor/base.tsx
@@ -52,7 +52,10 @@ const Base: FC<Props> = ({
<div ref={ref} className={cn(className, isExpand && 'h-full', 'rounded-lg border', isFocus ? 'bg-white border-gray-200' : 'bg-gray-100 border-gray-100 overflow-hidden')}>
<div className='flex justify-between items-center h-7 pt-1 pl-3 pr-2'>
<div className='text-xs font-semibold text-gray-700'>{title}</div>
- <div className='flex items-center' onClick={e => e.stopPropagation()}>
+ <div className='flex items-center' onClick={(e) => {
+ e.nativeEvent.stopImmediatePropagation()
+ e.stopPropagation()
+ }}>
{headerRight}
{!isCopied
? (