mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): handle floats in NumberInputFieldComponent
This commit is contained in:
parent
021c63891d
commit
f34f416bf5
@ -31,7 +31,12 @@ const NumberInputFieldComponent = (
|
||||
};
|
||||
|
||||
return (
|
||||
<NumberInput onChange={handleValueChanged} value={field.value}>
|
||||
<NumberInput
|
||||
onChange={handleValueChanged}
|
||||
value={field.value}
|
||||
step={props.template.type === 'integer' ? 1 : 0.1}
|
||||
precision={props.template.type === 'integer' ? 0 : 3}
|
||||
>
|
||||
<NumberInputField />
|
||||
<NumberInputStepper>
|
||||
<NumberIncrementStepper />
|
||||
|
Loading…
Reference in New Issue
Block a user