You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FormArray rebuilds when is marked as touched or dirty.
I initialize FormArray with no controls (empty array) and MinLengthValidator(0). User can call markAllAsTouched() by pressing submit button any time he want. Doing this with empty FormArray should display an error.
Current behavior:
FormArray not rebuild when is marked as touched or dirty without interaction with its length (adding / removing item).
Steps to reproduce
Initialize form with empty FormArray and MinLengthValidator(0).
Call markAsTouched() on array or just markAllAsTouched()
The effect is form will not be sent (thats expected), but as well no error will be displayed to user (that seems to be a bug)
Video
Nagrywanie.2024-12-06.221304.mp4
The text was updated successfully, but these errors were encountered:
Environment
Package version: 17.0.1 (latest)
Flutter doctor
Code sample
https://github.com/dmisiek/form_array_touched_bug/blob/master/lib/main.dart
Description
Expected behavior:
FormArray rebuilds when is marked as touched or dirty.
I initialize FormArray with no controls (empty array) and
MinLengthValidator(0)
. User can callmarkAllAsTouched()
by pressing submit button any time he want. Doing this with empty FormArray should display an error.Current behavior:
FormArray not rebuild when is marked as touched or dirty without interaction with its length (adding / removing item).
Steps to reproduce
MinLengthValidator(0)
.markAsTouched()
on array or justmarkAllAsTouched()
The effect is form will not be sent (thats expected), but as well no error will be displayed to user (that seems to be a bug)
Video
Nagrywanie.2024-12-06.221304.mp4
The text was updated successfully, but these errors were encountered: