@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.
- package/esm2020/lib/components/selects/select/value-change.service.mjs +6 -5
- package/fesm2015/wizishop-angular-components.mjs +4 -3
- package/fesm2015/wizishop-angular-components.mjs.map +1 -1
- package/fesm2020/wizishop-angular-components.mjs +4 -3
- package/fesm2020/wizishop-angular-components.mjs.map +1 -1
- package/package.json +1 -1
- package/wizishop-angular-components-14.4.66.tgz +0 -0
- package/wizishop-angular-components-14.4.64.tgz +0 -0
|
@@ -565,8 +565,9 @@ class ValueChangeService {
|
|
|
565
565
|
return this.value !== this.getSelectedOptionsValues()[0];
|
|
566
566
|
}
|
|
567
567
|
handleSelectedOptionsEvent() {
|
|
568
|
-
this.optionSelectedChangeListeners().subscribe((
|
|
569
|
-
|
|
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)
|
|
594
|
+
return option.selectedChange.pipe(filter(() => !this.disabled));
|
|
594
595
|
});
|
|
595
596
|
return merge(...selectedChange$).pipe(takeUntil(this.resetListeners$));
|
|
596
597
|
}
|