Shadcn Combobox search for label instead of value
Answered
Eastern Phoebe posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/4.png)
Eastern PhoebeOP
I'm currently working on a project using the Shadcn combobox component and I've encountered a challenge. The combobox is populated with an array of objects, each having a
value
and a label
. The current implementation searches for the value
when a selection is made.6 Replies
![Avatar](https://cdn.discordapp.com/embed/avatars/4.png)
Eastern PhoebeOP
![Avatar](https://cdn.discordapp.com/embed/avatars/2.png)
Korat
![Avatar](https://cdn.discordapp.com/embed/avatars/4.png)
Eastern PhoebeOP
yeah i saw that one as well. but i havent found a solution ...
![Avatar](https://cdn.discordapp.com/embed/avatars/2.png)
Korat
Answer
![Avatar](https://cdn.discordapp.com/embed/avatars/2.png)
Korat
Here you have the solution man, happy coding
![Avatar](https://cdn.discordapp.com/embed/avatars/4.png)
Eastern PhoebeOP
Hi @Korat thank you so much! You're the GOAT!