diff --git a/webui/src/components/ZodFormField.tsx b/webui/src/components/ZodFormField.tsx index bb6bd54..2caec39 100644 --- a/webui/src/components/ZodFormField.tsx +++ b/webui/src/components/ZodFormField.tsx @@ -51,10 +51,14 @@ const ZodFormField: React.FC = ({ fieldKey, value, onChange } { const numValue = e.target.value ? parseFloat(e.target.value) : undefined - handleChange(numValue) + // Only update if the parsed value is valid or the input is empty + if (e.target.value === '' || !isNaN(numValue!)) { + handleChange(numValue) + } }} placeholder={config.placeholder} />