-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Description
I have a very simple question for multi search option. I am passing options as below where the label is a text and value as an integer.
[
{ label: 'Chocolate', value: 1 },
{ label: 'Vanilla', value: 2 },
{ label: 'Strawberry', value: 3 },
{ label: 'Caramel', value: 4 },
{ label: 'Cookies Cream', value: 5 },
{ label: 'Peppermint', value: 6 },
]
When I search for 4 it displays label 'Caramel'. If I search for 'Caramel' that also give me 'Caramel' .
Is this intended behavior of react-select when I search something that will search from both - label and value? If this is not intended behavior then this must be considered as a defect.
Metadata
Metadata
Assignees
Labels
No labels