const ItemOptions: SelectValueInterface[] = Item.map((e) => ({
value: e.ItemId,
label: `${e.ItemName} (Item ID : ${e.ItemId})`,
}));
const options = [
{
label: 'ITEM NAME (Item ID)',
options: ItemOptions,
},
];
const formatGroupLabel = (data: any) => (
<div className={styles.formatGroupLabel}>
<span>{data.label}</span>
</div>
);
<Select
placeholder="Select Name"
options={options}
formatGroupLabel={formatGroupLabel}
classNamePrefix="select-list"
value={ItemOptions.filter((option) => option.value === selectedItemId)}
onChange={filterByItemID}
/>;
when on typing on searching/sorting. when i'm type "Item ID" it's show all options i would'like to not detect "(Item ID: number)"