Linked Questions

Popular Questions

As MatAutocomplete (Angular 6) has default behavior of keydown and keyup for option selection and Enter for the input value of selection.

I want to use tab instead of enter key.

Please suggest

Code:

<input matInput [matAutocomplete]="origin">
<i class="material-icons search-form-icon">place</i>

<mat-autocomplete #origin="matAutocomplete">
    <mat-option  *ngFor="let v of originList" [value]="v.value"> {{v.text}} </mat-option>
</mat-autocomplete>

Related Questions