#`canSubmit` behavior, invalid form submission

2 messages · Page 1 of 1 (latest)

tiny stratus
#

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?

#

canSubmit behavior, invalid form submission