From 331c65fd1d75c5b1bb0248132cb04f22b1117e99 Mon Sep 17 00:00:00 2001 From: Joel Date: Tue, 20 Jan 2026 15:34:54 +0800 Subject: [PATCH] fix: click file tab caused popup hide --- .../plugins/component-picker-block/index.tsx | 46 +++++++++++-------- .../_base/components/form-input-item.tsx | 2 +- 2 files changed, 28 insertions(+), 20 deletions(-) diff --git a/web/app/components/base/prompt-editor/plugins/component-picker-block/index.tsx b/web/app/components/base/prompt-editor/plugins/component-picker-block/index.tsx index a4dd8ce529..1609b80095 100644 --- a/web/app/components/base/prompt-editor/plugins/component-picker-block/index.tsx +++ b/web/app/components/base/prompt-editor/plugins/component-picker-block/index.tsx @@ -286,25 +286,33 @@ const ComponentPicker = ({ }} ref={refs.setFloating} > - + onMouseDown={(e) => { + e.preventDefault() + e.stopPropagation() + }} + > + +
{activeTab === 'variables' && ( ) - }, [isAgentTrigger, isSupportSandbox, triggerString, allFlattenOptions.length, workflowVariableBlock?.show, workflowVariableBlock.showManageInputField, workflowVariableBlock.onManageInputField, floatingStyles, isPositioned, refs, agentNodes, handleSelectAgent, handleClose, useExternalSearch, queryString, workflowVariableOptions, isSupportFileVar, showAssembleVariables, handleSelectAssembleVariables, currentBlock?.generatorType, t, activeTab, handleSelectWorkflowVariable, handleSelectFileReference]) + }, [isAgentTrigger, isSupportSandbox, triggerString, allFlattenOptions.length, workflowVariableBlock?.show, workflowVariableBlock?.showManageInputField, workflowVariableBlock?.onManageInputField, floatingStyles, isPositioned, refs, agentNodes, handleSelectAgent, handleClose, useExternalSearch, queryString, workflowVariableOptions, isSupportFileVar, showAssembleVariables, handleSelectAssembleVariables, currentBlock?.generatorType, t, activeTab, handleSelectWorkflowVariable, handleSelectFileReference]) return ( = ({ currentProvider={currentProvider} isFilterFileVar={isBoolean} toolNodeId={nodeId} - paramKey={variable} + // paramKey={variable} /> )} {isNumber && isConstant && (