Fix number field render

This commit is contained in:
WithoutPants
2024-09-23 10:14:29 +10:00
parent 33050f700e
commit 82f4a8f671

View File

@@ -137,6 +137,7 @@ export function formikUtils<V extends FormikValues>(
/> />
); );
} else if (type === "number") { } else if (type === "number") {
control = (
<NumberField <NumberField
type={type} type={type}
className="text-input" className="text-input"
@@ -144,7 +145,8 @@ export function formikUtils<V extends FormikValues>(
{...formikProps} {...formikProps}
value={value} value={value}
isInvalid={!!error} isInvalid={!!error}
/>; />
);
} else { } else {
control = ( control = (
<Form.Control <Form.Control