@wizishop/angular-components 14.4.64 → 14.4.66

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.
@@ -565,8 +565,9 @@ class ValueChangeService {
565
565
  return this.value !== this.getSelectedOptionsValues()[0];
566
566
  }
567
567
  handleSelectedOptionsEvent() {
568
- this.optionSelectedChangeListeners().subscribe((value) => {
569
- this.value = this.multiple ? this.getSelectedOptionsValues() : value;
568
+ this.optionSelectedChangeListeners().subscribe(() => {
569
+ const selectedOptionsValues = this.getSelectedOptionsValues();
570
+ this.value = this.multiple ? selectedOptionsValues : selectedOptionsValues[0];
570
571
  });
571
572
  }
572
573
  updateSelectPlaceholder() {
@@ -590,7 +591,7 @@ class ValueChangeService {
590
591
  }
591
592
  optionSelectedChangeListeners() {
592
593
  const selectedChange$ = this.optionChildren.map((option) => {
593
- return option.selectedChange.pipe(filter(() => !this.disabled), map(() => option.getValue()));
594
+ return option.selectedChange.pipe(filter(() => !this.disabled));
594
595
  });
595
596
  return merge(...selectedChange$).pipe(takeUntil(this.resetListeners$));
596
597
  }