@recursyve/nice-ui-kit.v2 13.1.0-beta.88 → 13.1.0-beta.89
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/async-typeahead/async-typeahead.component.mjs +6 -4
- package/fesm2015/recursyve-nice-ui-kit.v2.mjs +17 -13
- package/fesm2015/recursyve-nice-ui-kit.v2.mjs.map +1 -1
- package/fesm2020/recursyve-nice-ui-kit.v2.mjs +5 -3
- package/fesm2020/recursyve-nice-ui-kit.v2.mjs.map +1 -1
- package/lib/components/async-typeahead/async-typeahead.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -2901,7 +2901,7 @@ class NiceAsyncTypeaheadComponent extends _BaseAsyncTypeaheadComponent {
|
|
|
2901
2901
|
this.updateErrorState();
|
|
2902
2902
|
}
|
|
2903
2903
|
}
|
|
2904
|
-
writeValue(value) {
|
|
2904
|
+
async writeValue(value) {
|
|
2905
2905
|
if (this._value === value || (isNullOrUndefined(this._value) && isNullOrUndefined(value))) {
|
|
2906
2906
|
return;
|
|
2907
2907
|
}
|
|
@@ -2909,12 +2909,14 @@ class NiceAsyncTypeaheadComponent extends _BaseAsyncTypeaheadComponent {
|
|
|
2909
2909
|
this.onRemove(null);
|
|
2910
2910
|
return;
|
|
2911
2911
|
}
|
|
2912
|
-
this.value = value;
|
|
2913
2912
|
if (value instanceof NiceTypeaheadNewValue) {
|
|
2914
2913
|
this.updateSearchInput();
|
|
2915
2914
|
return;
|
|
2916
2915
|
}
|
|
2917
|
-
|
|
2916
|
+
else {
|
|
2917
|
+
await this.service.setActiveId(this.resource, value, this.searchOptions).then(() => this.updateSearchInput());
|
|
2918
|
+
}
|
|
2919
|
+
this.value = value;
|
|
2918
2920
|
}
|
|
2919
2921
|
registerOnChange(propagate) {
|
|
2920
2922
|
this.propagate = propagate;
|