|
|
@ -41,6 +41,7 @@ import { |
|
|
debounceTime, |
|
|
debounceTime, |
|
|
distinctUntilChanged, |
|
|
distinctUntilChanged, |
|
|
filter, |
|
|
filter, |
|
|
|
|
|
map, |
|
|
switchMap |
|
|
switchMap |
|
|
} from 'rxjs/operators'; |
|
|
} from 'rxjs/operators'; |
|
|
|
|
|
|
|
|
@ -128,6 +129,9 @@ export class GfSymbolAutocompleteComponent |
|
|
|
|
|
|
|
|
this.control.valueChanges |
|
|
this.control.valueChanges |
|
|
.pipe( |
|
|
.pipe( |
|
|
|
|
|
map((query) => { |
|
|
|
|
|
return isString(query) ? query.trim() : query; |
|
|
|
|
|
}), |
|
|
filter((query) => { |
|
|
filter((query) => { |
|
|
if (query?.length === 0) { |
|
|
if (query?.length === 0) { |
|
|
this.showDefaultOptions(); |
|
|
this.showDefaultOptions(); |
|
|
|