From 1ef8329bebb98ff4babef54ceca48bb5352b266e Mon Sep 17 00:00:00 2001 From: Andrey Grankin Date: Tue, 24 Jun 2025 12:31:54 +0300 Subject: [PATCH] Use default value in return value of useInertiaInput --- src/useInertiaInput/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) },