@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.
@@ -5730,9 +5730,7 @@ class SmartformwidgetComponent {
5730
5730
  if (!this.form.controls[this.widgetInstance.key].value) {
5731
5731
  this.form.controls[this.widgetInstance.key].setValue([]);
5732
5732
  this.form.controls[this.widgetInstance.key].updateValueAndValidity();
5733
- this.changeDetector.detectChanges();
5734
5733
  }
5735
- let asd = this.widgetInstance.value;
5736
5734
  this.form.controls[this.widgetInstance.key].value.push(value);
5737
5735
  this.form.controls[this.widgetInstance.key].updateValueAndValidity();
5738
5736
  }
@@ -5760,6 +5758,10 @@ class SmartformwidgetComponent {
5760
5758
  if ((this.widgetInstance.maxValues &&
5761
5759
  this.widgetInstance.value.length < this.widgetInstance.maxValues) ||
5762
5760
  !this.widgetInstance.maxValues) {
5761
+ if (!this.form.controls[this.widgetInstance.key].value) {
5762
+ this.form.controls[this.widgetInstance.key].setValue([]);
5763
+ this.form.controls[this.widgetInstance.key].updateValueAndValidity();
5764
+ }
5763
5765
  this.form.controls[this.widgetInstance.key].value.push(value);
5764
5766
  this.form.controls[this.widgetInstance.key].updateValueAndValidity();
5765
5767
  }