We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, folks.
Validators.required works only once for ReactiveDropdownSearchMultiSelection.
How to reproduce:
Update: As a walkaround I use Validators.Required in combination with Validators.minLength(1).
Form
final test_form =fb.group({ 'multi_field': FormControl<List<String>>(validators: [Validators.required]), });
Model
List<String> test_form_items=['item1', 'item2', 'item3'];
View
ReactiveForm( formGroup: test_form, child: Padding( padding: const EdgeInsets.all(8.0), child: ReactiveDropdownSearchMultiSelection<String,String>( validationMessages: { ValidationMessage.required: (error) => 'Required!', }, formControlName: 'multi_field', items: test_form_items, ), ), ), SizedBox(height: 50,), OutlinedButton( onPressed: (){ test_form.markAllAsTouched(); }, child: Text('Validate!'))
The text was updated successfully, but these errors were encountered:
Hi @leaderrr767 This is an issue with validator joanpablo/reactive_forms#377
It does not handle empty lists and maps properly
Sorry, something went wrong.
wait for joanpablo/reactive_forms#378
as far as im casting null to [] i decided to cast back the value for consistency) check reactive_dropdown_search 1.0.1
No branches or pull requests
Hi, folks.
Validators.required works only once for ReactiveDropdownSearchMultiSelection.
How to reproduce:
Update:
As a walkaround I use Validators.Required in combination with Validators.minLength(1).
Form
Model
View
The text was updated successfully, but these errors were encountered: