PanelEdit: Field Config options Fix numeric option bug (#24397)
This commit is contained in:
committed by
Arve Knudsen
parent
10bf03b221
commit
575d898955
@@ -39,9 +39,10 @@ export const NumberValueEditor: React.FC<FieldConfigEditorProps<number, NumberFi
|
||||
[onChange]
|
||||
);
|
||||
|
||||
const defaultValue = value === undefined || value === null || isNaN(value) ? '' : value.toString();
|
||||
return (
|
||||
<Input
|
||||
defaultValue={isNaN(value) ? '' : value.toString()}
|
||||
defaultValue={defaultValue}
|
||||
min={settings?.min}
|
||||
max={settings?.max}
|
||||
type="number"
|
||||
|
||||
Reference in New Issue
Block a user