dropdown_button2 icon indicating copy to clipboard operation
dropdown_button2 copied to clipboard

Is it possible to search typing directly in the main control without showing the dropdown list?

Open ghost opened this issue 1 year ago • 5 comments
trafficstars

We're trying to locate an item starting writing in the main control, without showing the dropdown list. I mean, when the dropdownbutton gets the focus, the user starts writing 'Colu'... and the items in the list that coincide with 'Colu' will be selected ('Columbia', 'Columbus' for instance).

It would be useful, especially for desktop and web apps.

Example: in this dropdown

image

with this item list:

image

If the user starts writing 'Colu'... (NOTE: not necessarily need to be showing the list)...

image

... the list will be filtered by the search term. If there's only one item that coincides with the search term, it would be automatically selected.

Thank you!

ghost avatar Nov 23 '23 06:11 ghost

I'm not sure I understand the UX here. Do you have a real example or this is a special UX?

AhmedLSayed9 avatar Nov 23 '23 12:11 AhmedLSayed9

I'm not sure I understand the UX here. Do you have a real example or this is a special UX?

I'm talking about a "standard" behavior in which the user starts typing right after the control gets the focus, without having to drop down the list. As they're typing, the selected item is changing to reflect the first item in the list that coincides with the text that they've written so far. So they wouldn't need to expand the list of items (only by typing the correct word, they select the proper item).

It's like an inline autocomplete. That would be the word, I believe.

You can see an example in this link:

https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-autocomplete-both/#ex_label

ghost avatar Nov 23 '23 14:11 ghost

Both features editable dropdown field and inline autocomplete are not supported yet.

AhmedLSayed9 avatar Nov 23 '23 14:11 AhmedLSayed9

Both features editable dropdown field and inline autocomplete are not supported yet.

Ok, I see... it's a pity, we'd have loved it if we'd been able to use it. Thank you so much, @AhmedLSayed9.

Do you think it would be interesting to implement it?

ghost avatar Nov 24 '23 08:11 ghost

Do you think it would be interesting to implement it?

Yes, but it'll take some time. Feel free to contribute if you want :)

AhmedLSayed9 avatar Nov 24 '23 14:11 AhmedLSayed9