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
commit 3a9cfd787d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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