Skip to content

[SelectField] hintText not showing up #6814

@clems36

Description

@clems36

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: selectChanges related to the select.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions