-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[bug]: Combobox search functionality searches values instead of labels #5352
Labels
bug
Something isn't working
Comments
Hey @tbeckett1211, I would like to fix this issue. Assign it to me. |
@karanBRAVO I have no idea how to do that, however, I would really appreciate a patch for this. |
🤩⏳ I have started working on this issue. |
Take a look at this cmdk PR. Alternatively, you can write a custom filter function. See the cmdk docs. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
The example on the web page works fine but that is because the values have the same text as the labels. Most selects will have a description as the label and some sort of ID as the value. Upon changing the values to in the examples to random strings, the search/filter does not filter based on the labels, it searches based upon the value.
Affected component/components
combobox
How to reproduce
Change values of frameworks to values that does not directly contain the same text as the labels. Then try to search for a framework in the list
Codesandbox/StackBlitz link
No response
Logs
No response
System Info
Before submitting
The text was updated successfully, but these errors were encountered: