我填充了垫自动完成列表,未触发optionSelected事件。
<input type="text" placeholder="Client Name" matInput formControlName ="clientId" [matAutocomplete]="auto" class="formControl">
<mat-autocomplete #auto="matAutocomplete" [displayWith]="displayFn.bind(this)"
(optionSelected) = "getSelected($event)">
<mat-option *ngFor="let client of clients"
[value]="client.clientId">
{{client.firstName}}
</mat-option>
</mat-autocomplete>
有人请告诉我哪里出问题了吗?