Open
Description
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
A MatAutocomplete field initialized with a control value does not highlight item in options
Reproduction
StackBlitz link: https://stackblitz.com/edit/saqfud?file=src%2Fexample%2Fautocomplete-filter-example.ts,src%2Fexample%2Fautocomplete-filter-example.html,src%2Fexample%2Fautocomplete-filter-example.css
Steps to reproduce:
- Set initial value of control (second one value for example)
options: string[] = ['One', 'Two', 'Three'];
myControl = new FormControl(this.options[1]);
- click on input on UI
Expected Behavior
Second one option is highlighted
Actual Behavior
second option is not highlighted
Environment
- Angular:
- CDK/Material:
- Browser(s):
- Operating System (e.g. Windows, macOS, Ubuntu):