Skip to content

bug(select): typeahead with more than one character does not select the right option #21242

Closed
@dixy

Description

@dixy

Reproduction

Steps to reproduce:

  1. Go to https://stackblitz.com/edit/angular-utktd6?file=src%2Fapp%2Fselect-overview-example.html
  2. Open the mat-select
  3. Type "p" then "u"

Expected Behavior

I expect option "Puzza" to be selected, like it was in v10.2.7: https://stackblitz.com/edit/angular-jhktmb

Actual Behavior

The selected option is "Pozza".

Environment

  • Angular: Latest
  • CDK/Material: Latest
  • Browser(s): Edge 87, Firefox 83
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows

Metadata

Metadata

Assignees

Labels

P2The issue is important to a large percentage of users, with a workaroundarea: material/selectregressionThis issue is related to a regression

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions