diff --git a/src/components/ui/form-fields.tsx b/src/components/ui/form-fields.tsx index 129a7b8..5edca30 100644 --- a/src/components/ui/form-fields.tsx +++ b/src/components/ui/form-fields.tsx @@ -39,7 +39,18 @@ export const FormInput = < {label} - + { + field.onChange( + inputProps?.type === "number" + ? e.target.valueAsNumber || field.value + : e.target.value + ); + }} + value={field.value || ""} + /> {description && {description}} diff --git a/src/pages/laravel/index.tsx b/src/pages/laravel/index.tsx index f5afa5b..cbe97a6 100644 --- a/src/pages/laravel/index.tsx +++ b/src/pages/laravel/index.tsx @@ -71,6 +71,9 @@ export default function Page() { label="PHP Memory Limit" />