@recursyve/nice-ui-kit.v2 13.2.0-beta.107 → 13.2.0-beta.108
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/directives/chip-list/chip-list.directive.mjs +9 -4
- package/fesm2015/recursyve-nice-ui-kit.v2.mjs +7 -2
- package/fesm2015/recursyve-nice-ui-kit.v2.mjs.map +1 -1
- package/fesm2020/recursyve-nice-ui-kit.v2.mjs +7 -2
- package/fesm2020/recursyve-nice-ui-kit.v2.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -8994,8 +8994,13 @@ class NiceChipListDirective {
|
|
|
8994
8994
|
setupAsyncTypeahead() {
|
|
8995
8995
|
this.asyncTypeahead.selected
|
|
8996
8996
|
.pipe(takeUntil(this.unsubscribeAll$), filter((selected) => selected))
|
|
8997
|
-
.subscribe((
|
|
8998
|
-
|
|
8997
|
+
.subscribe((value) => {
|
|
8998
|
+
if (value instanceof NiceTypeaheadNewValue) {
|
|
8999
|
+
this.addValue(value);
|
|
9000
|
+
}
|
|
9001
|
+
else {
|
|
9002
|
+
this.addValue(this.asyncTypeahead.getActive());
|
|
9003
|
+
}
|
|
8999
9004
|
this.asyncTypeahead.searchOptions = { ...(this.asyncTypeahead.searchOptions ?? {}), ignore: this._values ?? [] };
|
|
9000
9005
|
this.asyncTypeahead.onRemove(null, this.reloadOnSelected);
|
|
9001
9006
|
});
|