fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Dropdown does not jump to option on keyboard input

Open IanVS opened this issue 9 years ago • 10 comments

Bug Report

  • Package version(s): 5.5.0

Priorities and help requested (not applicable if asking question):

Are you willing to submit a PR to fix? Yes, if pointed in the right direction

Requested priority: High

Describe the issue:

Normal select boxes on the web will jump to a row when the user types with the keyboard while the select box is open. (Think of every "State" field on every address form you've ever filled out). Dropdown does not have this behavior.

https://github.com/OfficeDev/office-ui-fabric-react/issues/1979 is a similar issue, although it sounded like that user wanted the suggestions to filter. That's not standard select element functionality, so in that case ComboBox probably is a better choice.

The fact that ComboBox has a similar functionality and might be able to be made to behave the way I'm asking does not mean that Dropdown shouldn't behave as a standard select box out-of-the-box.

Actual behavior:

Typing on the keyboard while a Dropdown is open has no effect.

Expected behavior:

As the user types, the selection should change to the "closest" possible option (alphabetically). After they stop typing for a short time, then additional keyboard inputs should be treated as a new string. For example, in a list of states, typing "ut" would select "Utah", then after a short pause (unsure of the exact time), typing "oh" would select "Ohio".

If applicable, please provide a codepen repro:

The current behavior can be seen on the Fabric website examples.

IanVS avatar Oct 10 '17 13:10 IanVS

Dropdown is simply missing this feature! If you'd like to take a stab at making it work, it would be very welcome. The ComboBox and Dropdown are very similar and really I do wish they would share more code.

dzearing avatar Oct 12 '17 06:10 dzearing

Is there any update on this issue?

fidabhittani avatar Nov 08 '17 20:11 fidabhittani

I haven't had a chance to work on it so far, and honestly I don't foresee having too much time in the next month or so, unfortunately.

IanVS avatar Nov 09 '17 01:11 IanVS

I have cloned the code. And may may try to do this. If you have suggestion on how we are gonna do t. I was thinking of Taking the isOpen through props. Because now when i see it its in State. By taking it through props will allow the User to manage it through onBlur onfocus or how they like... what do u say..

fidabhittani avatar Nov 09 '17 05:11 fidabhittani

Anything yet?

fidabhittani avatar Nov 30 '17 08:11 fidabhittani

you can use combobox for this funcationality

micahgodbolt avatar Dec 08 '17 22:12 micahgodbolt

anything yet for the dropdown?

vipinshr avatar Apr 22 '19 21:04 vipinshr

this is available with combobox. We're considering adding this to dropdown in the future (merging the two controls) but not currently planned for.

micahgodbolt avatar Apr 22 '19 21:04 micahgodbolt

Why did this get closed? This is an obvious missing feature that lacks parity with the corresponding native dropdown elements.

jgage176 avatar Jul 29 '19 20:07 jgage176

This is a combo box feature. Our goal is to eventually merge combobox and dropdown as they have WAY too much overlapping functionality.

micahgodbolt avatar Jul 30 '19 15:07 micahgodbolt