Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render() {
const { fAllowNull, value, options } = this.props;
const finalOptions = fAllowNull
? timm.addFirst(options, { value: '_NULL_', label: '' })
: options;
const otherProps = omit(this.props, [
'fAllowNull', 'onChange', 'value', 'options',
]);
return (
<select value="{this.toInternalValue(value)}">
{finalOptions.map(o => (
<option value="{o.value}" id="{String(o.value)}">{o.label}</option>
))}
</select>
);
}