select-field incorrectly displays floatingLabelText
See original GitHub issueRendering sth. like:
<SelectField
floatingLabelText='Client'
style={{ width: '100px' }}
menuItems={clientMenuItems}
selectedIndex={this.props.clients.indexOf(this.props.currentClient)}
onChange={this.onClientChange}/>
client menu items is an array of objects with text and payload.
The floatingLabelText is only correctly placed when another item is selected and the select is focused. As soon as I focus another element. The floatingLabelText is fullsizeGray overlapping with the selected element in black / same fontsize.
material-ui version: 0.10.4
Issue Analytics
- State:
- Created 8 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
select-field incorrectly displays floatingLabelText #1427 - GitHub
client menu items is an array of objects with text and payload. The floatingLabelText is only correctly placed when another item is selected...
Read more >material ui select field does not print text after selection
The SelectField displays properly and when I select a field, I see with the react addon on chrome that my props is correctly...
Read more >Material UI Example - Redux Form
Material UI Example. This is a simple demonstration of how to connect all the standard material-ui form elements to redux-form .
Read more >ReactJS + MaterialUI: SelectField height change
I'm using React material-ui SelectField on my page. I'm not able to adjust the height of the select field. Here is my code...
Read more >[Solved]-Display multiline error in Materials-UI TextField-Reactjs
Coding example for the question Display multiline error in Materials-UI ... <TextField floatingLabelText={'Input Field'} errorText={error?
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@aahan96 So for me the problem is “solved” by adding
value
. What about #2416?This can also be ‘solved’ by setting floatingLabelFixed to true