ng-tailwind 7.0.17 → 7.0.18

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.
@@ -10662,7 +10662,7 @@ class NgtReactiveSelectComponent extends NgtControlValueAccessor {
10662
10662
  onNativeChange(value) {
10663
10663
  if (this.hasChangesBetweenValues(this.value, value)) {
10664
10664
  value = this.sortSelectedItems(value);
10665
- if (this.valueAsArray() && !Array.isArray(value)) {
10665
+ if (value && this.valueAsArray() && !Array.isArray(value)) {
10666
10666
  value = [value];
10667
10667
  }
10668
10668
  this.nativeValue = value;
@@ -10671,7 +10671,7 @@ class NgtReactiveSelectComponent extends NgtControlValueAccessor {
10671
10671
  }
10672
10672
  change(value) {
10673
10673
  if (this.hasChangesBetweenValues(value, this.nativeValue)) {
10674
- if (this.valueAsArray() && !Array.isArray(value)) {
10674
+ if (value && this.valueAsArray() && !Array.isArray(value)) {
10675
10675
  value = [value];
10676
10676
  }
10677
10677
  this.nativeValue = this.sortSelectedItems(value);