Skip to content

feat(web-components): support type ahead in Dropdown#36232

Open
marchbox wants to merge 5 commits into
microsoft:masterfrom
marchbox:users/machi/dropdown-typeahead
Open

feat(web-components): support type ahead in Dropdown#36232
marchbox wants to merge 5 commits into
microsoft:masterfrom
marchbox:users/machi/dropdown-typeahead

Conversation

@marchbox
Copy link
Copy Markdown
Contributor

Previous Behavior

In Dropdown, when type="dropdown", typing doesn’t move active descendant to an option whose label text starts with the user typed content.

New Behavior

When Dropdown has the focus:

  • If Dropdown is closed, typing will open it
  • The option whose label text starts with the typed character will become the active descendant
  • If multiple options can be candidates of the active descendant based on the typed character, hitting the same key will cycle through the candidate options
  • If user type multiple characters within 500ms, all the characters will be buffered and used to match options

This behavior matches the native <select> and Fluent React Dropdown.

Related Issue(s)

Fixes #36122

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 19, 2026

📊 Bundle size report

✅ No changes found

@github-actions
Copy link
Copy Markdown

Pull request demo site: URL

@@ -0,0 +1,7 @@
{
Copy link
Copy Markdown

@github-actions github-actions Bot May 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🕵🏾‍♀️ visual changes to review in the Visual Change Report

vr-tests-web-components/Avatar 1 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-web-components/Avatar. - Dark Mode.normal.chromium_1.png 298 Changed
vr-tests-web-components/RadioGroup 1 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-web-components/RadioGroup. - Dark Mode.2nd selected.chromium_3.png 119 Changed
vr-tests-web-components/TextInput 1 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-web-components/TextInput. - Dark Mode.normal.chromium_1.png 288 Changed

@marchbox marchbox marked this pull request as ready for review May 19, 2026 23:58
@marchbox marchbox requested a review from a team as a code owner May 19, 2026 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

[Bug]: Select items with keystrokes

1 participant