From f80c70cc5c307d8e5af05d479ba5750f7cc443ca Mon Sep 17 00:00:00 2001 From: hubbeDev <57641199+HubbeDev@users.noreply.github.com.> Date: Sun, 14 Jan 2024 15:05:27 +0100 Subject: [PATCH] fix: validate form input on input --- apps/svelte-gravity-forms/src/lib/components/root.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/svelte-gravity-forms/src/lib/components/root.svelte b/apps/svelte-gravity-forms/src/lib/components/root.svelte index 938a374..aedb1d3 100644 --- a/apps/svelte-gravity-forms/src/lib/components/root.svelte +++ b/apps/svelte-gravity-forms/src/lib/components/root.svelte @@ -30,7 +30,7 @@ SPA: ssr ? undefined : true, validators: $formSchema, // 'auto' | 'oninput' | 'onblur' | 'submit-only' = 'auto', - validationMethod: 'onblur', + validationMethod: 'oninput', //'keep' | 'clear' = 'keep', defaultValidator: 'clear', // Reset the form upon a successful result