name={input.id}
commandInput={input}
component={InputComponent}
- parse={value => parseInt(value, 10)}
+ parse={parse}
format={value => isNaN(value) ? '' : JSON.stringify(value)}
validate={[
isRequiredInput(input)
: () => undefined,
]} />;
+const parse = (value: any) => parseInt(value, 10);
+
const InputComponent = (props: GenericInputProps) =>
<GenericInput
component={Input}