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
Selected option does not get deselected when the input is cleared (without clicking on input field for focus) while the panel is closed.
Screen.Recording.2025-05-27.at.2.03.36.PM.mov
Reproduction
StackBlitz link:
Steps to reproduce:
- Click on autocomplete input field.
- Select an option from the list.
- Hit backspace from keyboard. (NOTE - don't click on the input to focus the field so that the panel remains closed while hitting backspace)
- On first backspace - the selection (checkmark) remains on the previously selected option and the panel gets opened.
- On second backspace - the selection gets cleared because panel was already open.
Expected Behavior
The selection should get cleared since the input value has changed.
Actual Behavior
The selection does not get cleared.
Environment
- Angular:
- CDK/Material:
- Browser(s):
- Operating System (e.g. Windows, macOS, Ubuntu):