Skip to content

Commit 47ddfb6

Browse files
authored
fix(dropdown): auto-add character to trigger tag dropdown on connection tag drop in agent tools (#1742)
1 parent 5d48c27 commit 47ddfb6

File tree

1 file changed

+7
-1
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/components

1 file changed

+7
-1
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/components/short-input.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,13 @@ export function ShortInput({
287287

288288
// Update all state in a single batch
289289
Promise.resolve().then(() => {
290-
setStoreValue(newValue)
290+
// Update value through onChange if provided, otherwise use store
291+
if (onChange) {
292+
onChange(newValue)
293+
} else if (!isPreview) {
294+
setStoreValue(newValue)
295+
}
296+
291297
setCursorPosition(dropPosition + 1)
292298
setShowTags(true)
293299

0 commit comments

Comments
 (0)