Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return (
<span>{label}</span>
{tooltipElement}
(option[valueProperty])}
getOptionLabel={getOptionLabel || getOptionLabelDefault}
loadOptions={loadOptions}
defaultOptions={defaultOptions}
id={id}
isMulti={multi}
placeholder={translations['select.placeholder'] || ''}
cache={{}}
value={value || null}
{...props}
/>
);
}
<form>
<select> (option.title)}
getOptionValue={option => (option.id)}
isClearable
isMulti
onChange={this.onChange}
options={options}
placeholder={translations['select.placeholder']}
setMultiValue={this.handleMultiValueChange}
styles={customStyles}
values={colors}
value={activeCalendars.map(option => ({
...option,
filterType: 'COLOR_PICKER',
label: option.title,
}))}
// loadOptions={loadOptions}
// defaultOptions={defaultOptions}
/>
</select></form>
label: option.label,
}));
const entries = filter.entries || [];
return (
option.key}
onChange={handleSearchFilterChange}
placeholder={ui.translations['select.placeholder']}
setMultiValue={handleSearchFilterValueChange}
value={entries.map(entry => ({
...entry,
key: entry.field || entry.value.value,
label: entry.field || entry.value.value,
...Array.findByField(options, 'id', entry.field),
}))}
values={entries.reduce((accumulator, currentValue) => ({
...accumulator,
[currentValue.field || currentValue.value.value]: currentValue.value,
}), {})}
/>
);
}, [ui.namedContainers, ui.translations, filter.entries]);
return (
<div>
{task && task.path
? (
{
openModal(taskId);
setTask(taskId);
}}
/>
)
: (
<span>
{label || ui.translations['select.placeholder']}
</span>
)}
<button color="link">
</button>
</div>