diff --git a/src/useInertiaInput/index.ts b/src/useInertiaInput/index.ts index a7cd682..01de919 100644 --- a/src/useInertiaInput/index.ts +++ b/src/useInertiaInput/index.ts @@ -63,7 +63,7 @@ const useInertiaInput = ({ form, inputName: inputName, inputId, - value: value ?? "" as T, + value: value ?? defaultValue ?? "" as T, setValue: (value: T) => { return form.setData(inputName, value) },