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
Add event listeners for tag creation and removal in sidebarEditValues function
Muhammad Hamza Khan80ff1955611c
diff --git a/packages/app/src/builder-ui/ui/dialogs.ts b/packages/app/src/builder-ui/ui/dialogs.tsindex 9dee12e2..58e4fbf9 100644--- a/packages/app/src/builder-ui/ui/dialogs.ts+++ b/packages/app/src/builder-ui/ui/dialogs.ts@@ -1215,6 +1215,44 @@ export function sidebarEditValues({true,);+ // Listen for tag creation via keyboard (Enter, Space, Comma)+ _form.addEventListener(+ 'keydown',+ (event: KeyboardEvent) => {+ const target = event.target as HTMLElement;+ // Check if this is a tag input and a tag creation key+ if (+ target.closest('.tag-input') &&+ (event.key === 'Enter' || event.key === ' ' || event.key === ',')+ ) {+ const input = target as HTMLInputElement;+ if (input.value.trim()) {+ // Tag will be created, trigger auto-save after a small delay+ setTimeout(() => {+ debouncedDraft();+ }, 100);+ }+ }+ },+ true,+ );++ // Listen for tag removal via click on X button+ _form.addEventListener(+ 'click',+ (event: Event) => {+ const target = event.target as HTMLElement;+ // Check if this is a tag removal button+ if (target.classList.contains('remover') && target.closest('.tag-input')) {+ // Tag is being removed, trigger auto-save after a small delay+ setTimeout(() => {+ debouncedDraft();+ }, 50);+ }+ },+ true,+ );+_form._init();forms[tab] = { form: _form, fields: formFields };} else {