material-ui
material-ui copied to clipboard
[SelectField] Misplaced errorText when no item selected
Problem Description
When no item is selected in the list, and an error is set, I get:
But once I select an item the styling is OK:
## Versions
- Material-UI: 0.15.0-alpha.1 and 0.14.3
- React: 0.14.7
- Browser: Chrome 48 OSX
I see this on the docs example too: http://www.material-ui.com/#/components/select-field
Hi @antoinerousseau for now you can fix this by adding following condition in your SelectField
errorText={this.state.value? (Yourcondition && 'Error text') : null}
@heetvachhani thanks but it does not fix the problem (I don't see why in your solution? this is a styling issue)