@koalarx/ui 13.0.3 → 13.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/form/esm2020/lib/dynamic-form/koala.dynamic-form.service.mjs +2 -3
- package/form/fesm2015/koalarx-ui-form.mjs +1 -2
- package/form/fesm2015/koalarx-ui-form.mjs.map +1 -1
- package/form/fesm2020/koalarx-ui-form.mjs +1 -2
- package/form/fesm2020/koalarx-ui-form.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -528,13 +528,12 @@ class KoalaDynamicFormService {
|
|
|
528
528
|
const formArray = formGroup.get('formData');
|
|
529
529
|
const control = formArray.controls.find(control => control.get('name').value === name);
|
|
530
530
|
if (control) {
|
|
531
|
-
const currentRequired = control.get('required').value;
|
|
532
531
|
const currentMin = control.get('min').value;
|
|
533
532
|
const currentMax = control.get('max').value;
|
|
534
533
|
const validators = [];
|
|
535
534
|
control.get('value').clearValidators();
|
|
536
535
|
control.get('value').setErrors(null);
|
|
537
|
-
if (
|
|
536
|
+
if (type === "required" && value) {
|
|
538
537
|
validators.push(Validators.required);
|
|
539
538
|
control.get('value').setErrors({ required: true });
|
|
540
539
|
}
|