Hi!
I'm having an issue with the hintText property. It does not show anything on an empty SelectField component.
Code:
<SelectField
hintText="Sites"
value={this.state.value}
onChange={(event, value) => this.handleChange(event, value)}
fullWidth={true} >
{sites.map((site, index) => {
if (site.subject) {
return <MenuItem key={index} value={index} primaryText={site.subject + ' (' + site.id + ')'} />
} else {
if (site.extId) {
return <MenuItem key={index} value={index} primaryText={site.extId + ' (' + site.id + ')'} />
}
return <MenuItem key={index} value={index} primaryText={site.id} />
}
})}
</SelectField>
Nothing too special on there ...
Thanks!
Hi!
I'm having an issue with the hintText property. It does not show anything on an empty SelectField component.
Code:
Nothing too special on there ...
Thanks!