ng-tailwind 7.0.7 → 7.0.8

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.
@@ -10592,7 +10592,10 @@ class NgtReactiveSelectComponent extends NgtControlValueAccessor {
10592
10592
  }
10593
10593
  this.nativeValue = this.sortSelectedItems(value);
10594
10594
  this.changeDetector.detectChanges();
10595
- this.ngSelectComponent.writeValue(this.nativeValue);
10595
+ const valueToNgSelect = !this.multiple() && this.valueAsArray() && this.nativeValue?.length
10596
+ ? this.nativeValue[0]
10597
+ : this.nativeValue;
10598
+ this.ngSelectComponent.writeValue(valueToNgSelect);
10596
10599
  }
10597
10600
  }
10598
10601
  loadRemoteData(filters) {