Shadcn Combobox search for label instead of value
Answered
Eastern Phoebe posted this in #help-forum

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

Eastern PhoebeOP

Korat

@Korat Damn, nice catch brother,
Someone mentioned this in https://github.com/shadcn-ui/ui/issues/458

Eastern PhoebeOP
yeah i saw that one as well. but i havent found a solution ...

Korat
Answer

Korat
Here you have the solution man, happy coding

@Korat Click to see attachment

Eastern PhoebeOP
Hi @Korat thank you so much! You're the GOAT!