瀏覽代碼

fix: in conversation log click op button would cause close drawer (#3483)

Joel 1 年之前
父節點
當前提交
459bed9243
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      web/app/components/workflow/nodes/_base/components/editor/base.tsx

+ 1 - 1
web/app/components/workflow/nodes/_base/components/editor/base.tsx

@@ -49,7 +49,7 @@ 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'>
+          <div className='flex items-center' onClick={e => e.stopPropagation()}>
             {headerRight}
             {!isCopied
               ? (