select icon indicating copy to clipboard operation
select copied to clipboard

tokenSeparators - usage consulting

Open muzea opened this issue 5 years ago • 1 comments

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.

muzea avatar Jan 27 '20 14:01 muzea

+1 for this

kennedy0527 avatar Mar 28 '21 12:03 kennedy0527