I have come across an issue with the mat-autocomplete control for Angular Material where it does not add the CSS class "mdc-list-item--selected" to the mat-option and also doesn't add the mat-pseudo-checkbox to a selected option when the contents are displayed via an observable filtered array.
I've created a stackblitz where you can see the issue.
The Filtered States Group does not show the selected option with a check and purple text but the Not Filtered States Group does. The ability for the user to see the selected option is important because they can modify the auto-complete after selecting a value to start a new search, however that doesn't actually change the selected value. So the visual indications for the selected option is very important for the usability.
Does anyone see any issues with how this is configured in the stackblitz link or know of a work around?
I forked this stackblitz from the Angular Material's optgroup example that also has the same issue.
Many thanks to Yurii that responded to the issue that I created in the Angular Github with the following solution: