Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropdown: Should narrow down/navigate to option on keyboard entry #6565

Closed
jaduong opened this issue Oct 4, 2018 · 5 comments
Closed

Dropdown: Should narrow down/navigate to option on keyboard entry #6565

jaduong opened this issue Oct 4, 2018 · 5 comments
Milestone

Comments

@jaduong
Copy link

jaduong commented Oct 4, 2018

Please provide a reproduction of the bug in a codepen:

https://codepen.io/anon/pen/XxKWWE
(always repros)

Bug Report

  • Package version(s): 15.6.1
  • Browser and OS versions: (fill this out if relevant)

Priorities and help requested:

Are you willing to submit a PR to fix? (Yes, No)

Requested priority: (Blocking, High, Normal, Low) Normal-High

Products/sites affected: (if applicable) Project Roadmap

Describe the issue:

Expect that the dropdown will help select the appropriate item for the user when typing a character.

Actual behavior:

Type "P" in a dropdown, nothing happens.

Expected behavior:

Type "P" in a dropdown, navigates to item in list that starts with "P".

@Vitalius1
Copy link
Contributor

@jaduong I believe we don't have this behavior in the dropdown but we do support this in our ComboBox component. https://codepen.io/vitalius1/pen/LgZVJB here is a quick demo of ComboBox with allowFreeform={true} and autoComplete="on" props doing exactly what you expect.
Let us know if this is what you were looking. Plus there are plenty of other examples here.

@micahgodbolt feels like ComboBox is an improved version of Dropdown. Are we having any plans and solidifying this two under one control?

@micahgodbolt
Copy link
Member

We certainly have a desire to consolidate to a single component. It won't be a small feat though, so I'm not sure of the timeframe.

#6030

@jaduong
Copy link
Author

jaduong commented Oct 4, 2018

@Vitalius1 thanks that's helpful, we need to upgrade but once we do, I guess the ComboBox with freeform = false and autocomplete = on will be sufficient. I'm confused as to the difference between using Combo Box and Dropdown - it feels like Dropdown is incomplete since I can't use my keyboard to type into it.

@cliffkoh cliffkoh changed the title Typing a single string doesn't bring me to the right location in the Dropdown Dropdown: Should narrow down/navigate to option on keyboard entry Oct 16, 2018
@micahgodbolt
Copy link
Member

I've added this request to #6030. We'll investigate if we're able to add it.

@msft-fluent-ui-bot
Copy link
Collaborator

Because this issue has not had activity for over 150 days, we're automatically closing it for house-keeping purposes.

Still require assistance? Please, create a new issue with up-to date details.

@msft-fluent-ui-bot msft-fluent-ui-bot added the Resolution: Soft Close Soft closing inactive issues over a certain period label Apr 26, 2021
@microsoft microsoft locked as resolved and limited conversation to collaborators May 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants