Fixed typeahead not working correctly (#1490)
This commit is contained in:
parent
29827f423f
commit
6d10c52ee9
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,6 @@ import { UntypedFormControl, UntypedFormGroup } from '@angular/forms';
|
|||
import { Observable, of, ReplaySubject, Subject } from 'rxjs';
|
||||
import { auditTime, distinctUntilChanged, filter, map, shareReplay, switchMap, take, takeUntil, tap } from 'rxjs/operators';
|
||||
import { KEY_CODES } from '../shared/_services/utility.service';
|
||||
import { ToggleService } from '../_services/toggle.service';
|
||||
import { SelectionCompareFn, TypeaheadSettings } from './typeahead-settings';
|
||||
|
||||
/**
|
||||
|
@ -256,6 +255,7 @@ export class TypeaheadComponent implements OnInit, OnDestroy {
|
|||
tap((filteredOptions) => {
|
||||
this.isLoadingOptions = false;
|
||||
this.focusedIndex = 0;
|
||||
this.cdRef.markForCheck();
|
||||
setTimeout(() => {
|
||||
this.updateShowAddItem(filteredOptions);
|
||||
this.updateHighlight();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue