-
-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a way to have a signal in order to know if the Form is valid or not ? #248
Comments
We have the |
@fabian-hiller is there a possible way to change default value of .invalid to be true at first ? cause it doesn't change until the form get submitted |
The idea then was to call it |
I trying to make submit button disabled until the form is valid, here's my button component export const FormButton: FormButtonT = (props) => {
const [form, elemntProps] = splitProps(props, ['of'])
return <Button {...elemntProps} disabled={form.of.invalid || !form.of.dirty} loading={form.of.submitting || elemntProps.loading} />
} I tried to use |
Try to set |
Already did, when start typing |
True. Sorry for my last comment. It seems like the only way to do this at the moment is to call |
Hello, thx for this nice lib :)
I wonder if there is a way to get a signal which returns a boolean and is updated when the form is valid or not ?
The text was updated successfully, but these errors were encountered: