choc-autocomplete icon indicating copy to clipboard operation
choc-autocomplete copied to clipboard

Filter options based on label, not value

Open mfnash opened this issue 6 months ago • 4 comments

If the options is array of objects containing value and label properties, I want to filter the options based on the label, because the value contains an ID that shouldn't need to appear in the dropdown. This includes the results shown in the autocomplete, which should also come from the label. Currently, I haven't found a way to change this because the filter and displayed results can only be taken from the value. The value is only used to store the result in the form behind the scenes.

mfnash avatar Aug 10 '24 03:08 mfnash