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

Combobox filter option to match input to any part of dropdown options #535

Open
atmgrifter00 opened this issue May 3, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@atmgrifter00
Copy link
Contributor

😯 Problem to Solve

UX has requested that the Combobox provide a filter option that would match the user input value to any part of the text in the dropdown option text.

The primary use-case for this feature would be matching a common term for a subset of options that doesn't appear at the front of the text.

💁 Proposed Solution

The FAST Select offers a set of "autocomplete" options that include inline (which autocompletes from the beginning), 'list' (which just filters matching items from the beginning), 'both' (which both filters and autocompletes), and 'none'.

We can't really extend this solution since it's a closed type that specifies the options to select from. Even if we could extend it, it would be awkward, because what would 'both' mean with this new filter option? The options available to us to support this feature seem to be the following:

  1. Push FAST to introduce this feature in the way they think is best. I've started the Discord discussion here.
  2. Add the new filter option to nimble-combobox. While technically this would be implementation-light, it would also make for an ugly implementation if we had to have logic that had to handle the insane case where both the new option we provided as set as well as the FAST option.
  3. Fork the fast-foundation Combobox and provide the API/implementation we desire. This has the obvious drawback of us being severed from any improvements/bug fixes made to the FAST Combobox.
  4. Other?
@atmgrifter00 atmgrifter00 added enhancement New feature or request triage New issue that needs to be reviewed labels May 3, 2022
@m-akinc m-akinc removed the triage New issue that needs to be reviewed label May 17, 2022
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
Status: Backlog
Development

No branches or pull requests

2 participants