-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Closed
Labels
scope: selectChanges related to the select.Changes related to the select.
Description
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!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
scope: selectChanges related to the select.Changes related to the select.