@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.
@@ -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 ((type === "required" && value) || currentRequired) {
536
+ if (type === "required" && value) {
538
537
  validators.push(Validators.required);
539
538
  control.get('value').setErrors({ required: true });
540
539
  }