SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.
JavaScript a2aagentic-aiai-agentsdevtoolsmcp-clientn8n-alternativeno-codeopen-sourceorchestrationsmythosvisual-builder
Enhance URL field handling by dispatching change and input events, and trigger workspace save after URL update.
Muhammad Hamza Khan97fb97785956
diff --git a/packages/app/src/builder-ui/utils/component.utils/index.ts b/packages/app/src/builder-ui/utils/component.utils/index.tsindex 533c4565..736dcbe4 100644--- a/packages/app/src/builder-ui/utils/component.utils/index.ts+++ b/packages/app/src/builder-ui/utils/component.utils/index.ts@@ -132,6 +132,18 @@ export async function handleKvFieldEditBtnForParams(options?: {const newUrl = urlObj.href.replace(/%7B/g, '{').replace(/%7D/g, '}');urlField.value = this.data.url = newUrl;++ // Dispatch events to trigger auto-save+ const changeEvent = new Event('change');+ urlField.dispatchEvent(changeEvent);++ const inputEvent = new Event('input', { bubbles: true });+ urlField.dispatchEvent(inputEvent);++ // Trigger workspace save to propagate changes (similar to APIEndpoint component)+ setTimeout(() => {+ this.workspace.saveAgent();+ }, 100);} catch {console.warn('Invalid URL', url);errorToast('Please enter a valid URL before setting the query parameters');