@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.
@@ -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
- this.addValue(this.asyncTypeahead.getActive());
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
  });