Merge pull request #3635 from moltbot/fix-token-input-trim
fix: trim whitespace from config input fields on change
This commit is contained in:
commit
3a9cfd787d
@ -260,6 +260,11 @@ function renderTextInput(params: {
|
|||||||
}
|
}
|
||||||
onPatch(path, raw);
|
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`
|
${schema.default !== undefined ? html`
|
||||||
<button
|
<button
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user