<mat-autocomplete #auto="matAutocomplete" (optionSelected)="selectedDoctor($event); doctorInput.value = ''" >
it works here