Syncing formState.isValid
with error state
#11301
Unanswered
jimmycallin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
It looks like
formState.isValid
is being triggeredonChange
despite havingmode: onTouched
enabled. Ignoring the async validation performance implication, since this is being discussed elsewhere, we end up having weird inconsistencies where the isValid flag is false while no errors are showing. For instance, if we have a max length check and start typing, eventually our submit button will be disabled, but it's not until we blur the input field that the user understand what the issue is.See video for example:
Screenshare.-.2023-12-13.12_27_49.PM.mp4
Beta Was this translation helpful? Give feedback.
All reactions