I'm using a select input with a user_id as value and the username as label. When using the automatic search in multiselect modus, it's searching for an id/value instead of the username/label.
It would be nice to give a parameter to the select input like:
As per the instructions, new issues should be created using http://new-issue.ant.design
optionFilterProp
and filterOption
allow you to manage how to filter the available options, i.e.
<Select
showSearch
optionFilterProp="children"
filterOption={(input: any, option: any) => option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0}
>
...
</Select>
The above will filter case insensitively filter the available options by label.
This is shown on the documentation https://ant.design/components/select/#components-select-demo-search
HTH
Thanks Gavin!
Not a problem @remyvanderwereld
FYI, use the new-issue tool, as issues tend to get canned otherwise.
Most helpful comment
As per the instructions, new issues should be created using http://new-issue.ant.design
optionFilterProp
andfilterOption
allow you to manage how to filter the available options, i.e.The above will filter case insensitively filter the available options by label.
This is shown on the documentation https://ant.design/components/select/#components-select-demo-search
HTH