{!value
? placeholder
: options.find((x: any) => x.value == value) && !renderOption
? options.find((x: any) => x.value == value).label
: renderOption(options.find((x: any) => x.value == value))}
{!open ? (
) : (
)}
{open && (
{options.map((b: any, index: number) => (
{
onChangeCustom(e, b.value);
}}
>
{!renderOption ? b.label : renderOption(b)}
))}
)}