fix(dropdown): auto-add character to trigger tag dropdown on connection tag drop in agent tools (#1742)

This commit is contained in:
Waleed
2025-10-27 14:28:29 -07:00
committed by GitHub
parent 5d48c2780c
commit 47ddfb639e

View File

@@ -287,7 +287,13 @@ export function ShortInput({
// Update all state in a single batch
Promise.resolve().then(() => {
setStoreValue(newValue)
// Update value through onChange if provided, otherwise use store
if (onChange) {
onChange(newValue)
} else if (!isPreview) {
setStoreValue(newValue)
}
setCursorPosition(dropPosition + 1)
setShowTags(true)