select icon indicating copy to clipboard operation
select copied to clipboard

OptionFilterProp should default to the label specified in FieldNames

Open akmjenkins opened this issue 4 years ago • 0 comments

if fieldNames is used to map a label prop AND no optionFilterProp is provided (i.e. default is label) then optionFilterProp should search the label specified by fieldNames.

I find myself doing this:

<Select
    optionFilterProp="displayName"
    fieldNames={{
        label:'displayName',
        value:'id'
    }}
/>

Ideally, I just want to do this:

<Select
    fieldNames={{
        label:'displayName',
        value:'id'
    }}
/>

akmjenkins avatar Jan 18 '22 09:01 akmjenkins