Refactoring (#1533)

This commit is contained in:
Thomas Kaul
2022-12-25 12:40:29 +01:00
committed by GitHub
parent 16118d635c
commit c5ee3237ed
2 changed files with 3 additions and 3 deletions

View File

@@ -41,7 +41,7 @@ import { CreateOrUpdateActivityDialogParams } from './interfaces/interfaces';
templateUrl: 'create-or-update-activity-dialog.html' templateUrl: 'create-or-update-activity-dialog.html'
}) })
export class CreateOrUpdateActivityDialog implements OnDestroy { export class CreateOrUpdateActivityDialog implements OnDestroy {
@ViewChild('autocomplete') autocomplete; @ViewChild('symbolAutocomplete') symbolAutocomplete;
@ViewChild('tagInput') tagInput: ElementRef<HTMLInputElement>; @ViewChild('tagInput') tagInput: ElementRef<HTMLInputElement>;
public activityForm: FormGroup; public activityForm: FormGroup;

View File

@@ -41,11 +41,11 @@
autocorrect="off" autocorrect="off"
formControlName="searchSymbol" formControlName="searchSymbol"
matInput matInput
[matAutocomplete]="autocomplete" [matAutocomplete]="symbolAutocomplete"
(blur)="onBlurSymbol()" (blur)="onBlurSymbol()"
/> />
<mat-autocomplete <mat-autocomplete
#autocomplete="matAutocomplete" #symbolAutocomplete="matAutocomplete"
[displayWith]="displayFn" [displayWith]="displayFn"
(optionSelected)="onUpdateSymbol($event)" (optionSelected)="onUpdateSymbol($event)"
> >