From 5156b8f9c9219bcafc26505d0be56d99344c40b7 Mon Sep 17 00:00:00 2001 From: Joel Date: Tue, 26 Aug 2025 16:54:00 +0800 Subject: [PATCH] fix: not auto focus and popup var hide --- .../base/prompt-editor/plugins/hitl-input-block/input-field.tsx | 1 + .../prompt-editor/plugins/hitl-input-block/pre-populate.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/web/app/components/base/prompt-editor/plugins/hitl-input-block/input-field.tsx b/web/app/components/base/prompt-editor/plugins/hitl-input-block/input-field.tsx index a715fe6a6b..4c59af4f2a 100644 --- a/web/app/components/base/prompt-editor/plugins/hitl-input-block/input-field.tsx +++ b/web/app/components/base/prompt-editor/plugins/hitl-input-block/input-field.tsx @@ -65,6 +65,7 @@ const InputField: React.FC = ({ onChange={(e) => { setTempPayload(prev => ({ ...prev, output_variable_name: e.target.value })) }} + autoFocus />
diff --git a/web/app/components/base/prompt-editor/plugins/hitl-input-block/pre-populate.tsx b/web/app/components/base/prompt-editor/plugins/hitl-input-block/pre-populate.tsx index b54bc83308..27894328e8 100644 --- a/web/app/components/base/prompt-editor/plugins/hitl-input-block/pre-populate.tsx +++ b/web/app/components/base/prompt-editor/plugins/hitl-input-block/pre-populate.tsx @@ -72,7 +72,7 @@ const PrePopulate: FC = ({ value: valueSelector || [], onChange: onValueSelectorChange!, readonly: false, - zIndex: 1000, + zIndex: 1000000, // bigger than shortcut plugin popup } const isShowPlaceholder = !onPlaceholderClicked && (isVariable ? (!valueSelector || valueSelector.length === 0) : !value)