Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
[styles.focus]: this.state.hasFocus,
[styles.invalid]: this.invalid
})}
style={width ? { width } : null}
>
<span size="">
</span>
loadingText,
emptyOption,
visibleOptionsCount,
children,
onStaticClick,
assistiveText,
layout,
announcement,
constrain
} = this.props
const inputProps = omitProps(this.props, SelectField.propTypes, [
'allowEmpty',
'assistiveText',
'value',
...Object.keys(FormField.propTypes)
])
const highlightedOption = options[this.state.highlightedIndex]
if (highlightedOption && this.expanded) {
inputProps['aria-activedescendant'] = `${this._optionsId}_${highlightedOption.id}`
} else {
inputProps['aria-activedescendant'] = null
}
let wrappedLabel = (
<label>
{this.props.label}</label>
[styles.disabled]: disabled
}
const style = width ? { width } : null
let descriptionIds = ''
if (props['aria-describedby']) {
descriptionIds = `${props['aria-describedby'] }`
}
if (this.hasMessages) {
descriptionIds += this._messagesId
}
return (
<span>
</span>
readOnly,
interaction,
inline,
display,
placeholder,
required,
isRequired,
showArrows,
size,
value,
width
} = this.props
return (
<span width="" style="{width">
</span>