mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
fix(dropdown): auto-add character to trigger tag dropdown on connection tag drop in agent tools (#1742)
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user