Here in this Stackblitz I have a mat-autocomplete with async data.
When (optionSelected)
fires (when I click on an option) I want the field to be fully resetted like its freshly rendered/ initialised.
Currently this solution has two problems!
- after clearance I dont get any autosuggestions. I want to have the full autosuggestions back again.
==> I do have to blur and focus again or start typing.
- when I DON'T type and just blur and refocus I still have the
mat-option.mat-selected
class attached to the panel since the reset did only affect the input value. I highlighted this withbackground-color: red;
.