@ethlete/cdk 4.72.0 → 4.72.1
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/CHANGELOG.md +6 -0
- package/fesm2022/ethlete-cdk.mjs +8 -1
- package/fesm2022/ethlete-cdk.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/package.json +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @ethlete/cdk
|
|
2
2
|
|
|
3
|
+
## 4.72.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`ba5501f`](https://github.com/ethlete-io/ethdk/commit/ba5501f9d86878d1d02a2dea68ccaf591ff48611) Thanks [@TomTomB](https://github.com/TomTomB)! - Keep a combobox control's value while its async options load, instead of overwriting it with `null`.
|
|
8
|
+
|
|
3
9
|
## 4.72.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/fesm2022/ethlete-cdk.mjs
CHANGED
|
@@ -10671,6 +10671,7 @@ class ComboboxDirective {
|
|
|
10671
10671
|
this._comboboxConfig = inject(COMBOBOX_CONFIG_TOKEN, { optional: true });
|
|
10672
10672
|
this._themeProvider = inject(THEME_PROVIDER, { optional: true });
|
|
10673
10673
|
this._initialValue$ = new BehaviorSubject(null);
|
|
10674
|
+
this._hasReceivedSelectionValue = false;
|
|
10674
10675
|
this._filterInternal$ = new BehaviorSubject(false);
|
|
10675
10676
|
this._loading$ = new BehaviorSubject(false);
|
|
10676
10677
|
this.loading$ = this._loading$.asObservable();
|
|
@@ -10762,9 +10763,15 @@ class ComboboxDirective {
|
|
|
10762
10763
|
this._debugValidateOptionAndInitialValueSchema();
|
|
10763
10764
|
}
|
|
10764
10765
|
this._selectionModel.setSelectionFromValue$(this._input.value);
|
|
10766
|
+
const hasInitialControlValue = this._input.value !== null && this._input.value !== undefined;
|
|
10765
10767
|
this._selectionModel.value$
|
|
10766
10768
|
.pipe(takeUntil(this._destroy$), tap((value) => {
|
|
10767
|
-
this.
|
|
10769
|
+
const isInitialEmission = !this._hasReceivedSelectionValue;
|
|
10770
|
+
this._hasReceivedSelectionValue = true;
|
|
10771
|
+
const keepsControlValue = this._selectionModel.isSyncingSelectionFromValue || (isInitialEmission && hasInitialControlValue);
|
|
10772
|
+
if (!keepsControlValue) {
|
|
10773
|
+
this._input._updateValue(value);
|
|
10774
|
+
}
|
|
10768
10775
|
this._setFilterFromInputValue();
|
|
10769
10776
|
}))
|
|
10770
10777
|
.subscribe();
|