Submitting a form does not mark fields as touched if they are not currently rendered. This affects virtualized forms, where only a subset of fields may be rendered at the time of submission.
Expected behavior
After the user attempts to submit the form, fields should be considered touched even if they were not rendered at the time.
Actual behavior
Fields that were not rendered when the form was submitted retain the default isTouched value of false.
Some thoughts
One possible fix is to keep submissionAttempts in a separate atom and have fields subscribe to it. When submissionAttempts > 0, the default value of isTouched should be true instead of false.
Submitting a form does not mark fields as touched if they are not currently rendered. This affects virtualized forms, where only a subset of fields may be rendered at the time of submission.
Expected behavior
After the user attempts to submit the form, fields should be considered touched even if they were not rendered at the time.
Actual behavior
Fields that were not rendered when the form was submitted retain the default
isTouchedvalue offalse.Some thoughts
One possible fix is to keep
submissionAttemptsin a separate atom and have fields subscribe to it. WhensubmissionAttempts > 0, the default value ofisTouchedshould betrueinstead offalse.