fix(ui): trim whitespace from config input fields on change

This commit is contained in:
Shakker 2026-01-28 23:41:33 +00:00 committed by HirokiKobayashi-R
parent f28b4fc6ff
commit 5feaa1fbf1

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