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

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

Open
ghost opened this issue Nov 23, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@ghost
Copy link

ghost commented Nov 23, 2023

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!

@AhmedLSayed9
Copy link
Owner

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

@AhmedLSayed9 AhmedLSayed9 added the question Further information is requested label Nov 23, 2023
@ghost
Copy link
Author

ghost commented Nov 23, 2023

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

@AhmedLSayed9
Copy link
Owner

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

@AhmedLSayed9 AhmedLSayed9 added enhancement New feature or request and removed question Further information is requested labels Nov 23, 2023
@ghost
Copy link
Author

ghost commented Nov 24, 2023

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?

@AhmedLSayed9
Copy link
Owner

Do you think it would be interesting to implement it?

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant