Skip to content

Commit

Permalink
Fixed typeahead not working correctly (Kareadita#1490)
Browse files Browse the repository at this point in the history
  • Loading branch information
majora2007 authored Aug 29, 2022
1 parent 29827f4 commit 6d10c52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UI/Web/src/app/typeahead/typeahead.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

/**
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 6d10c52

Please sign in to comment.