The functionality required:
There is an input box with a MatAutoComplete attached to it. When in focus, the autocomplete panel opens and shows the options; the user then uses arrow keys to activate an option and press Enter to select it. Then after selection, the autocomplete panel closes and in the next Enter, it saves it.
The way I was handling it was (Angular 8):
Then I upgraded to Angular 11:
The Enter event function which checks for isOpen always returns false (It closes the panel 1st and then returns isOpen value) This results in input being saved with just one enter (not good). I event tried preventDefault to no avail.
Any suggestions or solutions will be appreciated!