@tft/crispr-forms 13.0.8 → 13.0.9

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.
@@ -332,7 +332,7 @@ class AbstractAutocompleteComponent extends AbstractAutocompleteFieldMixin {
332
332
  // filter options by the search string using either the default filter function or one passed in through config
333
333
  this.options$ = this.autocompleteInputControl.valueChanges.pipe(
334
334
  // this is needed to have the options panel to open on focus
335
- startWith(''), debounceTime(this.config.typeDebounceTime), map((searchText) => searchText?.trim()), distinctUntilChanged(), switchMap((searchText) => observablifyOptions(this.config.options, this.group, searchText)), shareReplay(1));
335
+ startWith(''), debounceTime(this.config.typeDebounceTime), map((searchText) => typeof searchText === 'string' ? searchText?.trim() : ''), distinctUntilChanged(), switchMap((searchText) => observablifyOptions(this.config.options, this.group, searchText)), shareReplay(1));
336
336
  }
337
337
  }
338
338
  AbstractAutocompleteComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: AbstractAutocompleteComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive });