From 206d56358d552fe77488f6fd0e60c349283b9fb4 Mon Sep 17 00:00:00 2001 From: zhsama Date: Fri, 30 Jan 2026 02:54:50 +0800 Subject: [PATCH] feat(prompt-editor): add external search and keyboard navigation to variable picker --- .../prompt-editor/plugins/component-picker-block/index.tsx | 3 +++ 1 file changed, 3 insertions(+) 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 7b576e1588..683481fd3a 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 @@ -326,6 +326,9 @@ const ComponentPicker = ({ onBlur={handleClose} showManageInputField={workflowVariableBlock?.showManageInputField} onManageInputField={workflowVariableBlock?.onManageInputField} + hideSearch={useExternalSearch} + externalSearchText={useExternalSearch ? (queryString ?? '') : undefined} + enableKeyboardNavigation={useExternalSearch} autoFocus={false} isInCodeGeneratorInstructionEditor={currentBlock?.generatorType === GeneratorType.code} />