vedanta
vedanta
the chat is private dude, try making a stackblitz
Just have a validator in the form-level and maintain a ref for submission count? There does exist a submissionAttempts property too. I don't know if support for this is widely...
> i do not think this is very unusual case. for example react hook form you can do it with setting mode to onSubmit https://react-hook-form.com/docs/useform#mode and revalidate mode onChange https://react-hook-form.com/docs/useform#reValidateMode...
I get it now. ```typescript const form = useForm({ validators: { onChange: ({ formApi }) => formApi.state.submissionAttempts > 1 ? yourValidator : undefined, onSubmit: ({ formApi }) => formApi.state.submissionAttempts ==...
`onInput` is the listener you are looking for here. So the problem here is how SolidJS treats `onChange`. `onInput` triggers immediately when the input value changes, whether by user typing,...
I think this is a good insight! However, the defaultState is not something I would expect to have toggled to `false` for canSubmit and isValid. From what I get, it...
1. I think this might be right, it should either reflect the settings provided or just not have the options to set the values that it will auto-change anyways. However,...
> Some confusion with the current handling of `isTouched` brought me here. I'm using this meta property to surface the error message for the user at the right time. >...
From what I find, the onChange validator will rightly handle the blurring by maintaining errors in the state.meta.errors. onSubmit however, is causing the blur event to clear the errors. I...
> Hello, do you need a hand to move this branch forward? I would love to see it happen :) Yeah sure dude, go for it!