Open
Description
openedon Jul 11, 2024
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):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgent