Merge pull request #3635 from moltbot/fix-token-input-trim

fix: trim whitespace from config input fields on change
This commit is contained in:
Shakker
2026-01-28 23:46:14 +00:00
committed by GitHub

View File

@@ -260,6 +260,11 @@ function renderTextInput(params: {
}
onPatch(path, raw);
}}
@change=${(e: Event) => {
if (inputType === "number") return;
const raw = (e.target as HTMLInputElement).value;
onPatch(path, raw.trim());
}}
/>
${schema.default !== undefined ? html`
<button