sveltekit-superforms
sveltekit-superforms copied to clipboard
Superforms with GridStack
Description When forcing client-side validation when the input loses focus, setting 'onblur' for validationMethod does not seem work, while 'oninput' does work. The input element comes from shadcn-svelte Form component. It acts exactly the same as the default method.
If applicable, a MRE
superForm(serverForm, { dataType: 'json', validators: schemasafeClient(schema), id: id, validationMethod: 'auto' });
this is the code I use to construct the form on client side.