select
select copied to clipboard
tokenSeparators - usage consulting
My data looks like the following
[
{
value: 1001,
label: 'a name'
}
]
I hope that after the user selects, the label will be displayed, and the user filter will also target the label, but I want automatically select these options when entering 1001,1002
. What should I do?
https://github.com/react-component/select/blob/947185f7bfc8c7f09e1d107b868287f50be0cb2c/src/generate.tsx#L352-L355
When optionLabelProp is not set, mergedOptionLabelProp
takes label
by default .
But I need mergedOptionLabelProp
to be value
while optionLabelProp is still label
.
+1 for this