Closed
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
Select has more options active (class .mat-active applied on more than one )
Reproduction
Code sample: https://stackblitz.com/edit/angular-pbxnro?file=src/app/select-example.html
Steps to reproduce:
- Click in the input to open the list
- Click outside in order to close the list
- Click on 'Update with 'Tacos'' button
- Click in the input to open the list
Expected Behavior
There is only one element which is active (has .mat-active class applied).
Actual Behavior
There are 2 elements that have the .mat-active class applied
Environment
- Angular: 14.2.10
- CDK/Material: 14.2.7
- Browser(s): Chrome, Firefox
- Operating System (e.g. Windows, macOS, Ubuntu): Windows