TanStackT
TanStack9mo ago
1 reply
slow-yellow

`canSubmit` behavior, invalid form submission

From these docs:
The form state object has a canSubmit flag that is false when any field is invalid and the form has been touched (canSubmit is
true
until the form has been touched, even if some fields are "technically" invalid based on their onChange/onBlur props).

Is there a way to change that behavior? If not, what's the appropriate workaround for the "don't ever let 'technically' invalid forms be submitted" use case?
Was this page helpful?