@smartbit4all/ng-client 3.3.142 → 3.3.144

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.
@@ -5708,9 +5708,7 @@ class SmartformwidgetComponent {
5708
5708
  if (!this.form.controls[this.widgetInstance.key].value) {
5709
5709
  this.form.controls[this.widgetInstance.key].setValue([]);
5710
5710
  this.form.controls[this.widgetInstance.key].updateValueAndValidity();
5711
- this.changeDetector.detectChanges();
5712
5711
  }
5713
- let asd = this.widgetInstance.value;
5714
5712
  this.form.controls[this.widgetInstance.key].value.push(value);
5715
5713
  this.form.controls[this.widgetInstance.key].updateValueAndValidity();
5716
5714
  }
@@ -5738,6 +5736,10 @@ class SmartformwidgetComponent {
5738
5736
  if ((this.widgetInstance.maxValues &&
5739
5737
  this.widgetInstance.value.length < this.widgetInstance.maxValues) ||
5740
5738
  !this.widgetInstance.maxValues) {
5739
+ if (!this.form.controls[this.widgetInstance.key].value) {
5740
+ this.form.controls[this.widgetInstance.key].setValue([]);
5741
+ this.form.controls[this.widgetInstance.key].updateValueAndValidity();
5742
+ }
5741
5743
  this.form.controls[this.widgetInstance.key].value.push(value);
5742
5744
  this.form.controls[this.widgetInstance.key].updateValueAndValidity();
5743
5745
  }