question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

select-field incorrectly displays floatingLabelText

See original GitHub issue

Rendering 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:closed
  • Created 8 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
martinhoeflingcommented, Jun 12, 2016

@aahan96 So for me the problem is “solved” by adding value. What about #2416?

0reactions
michielreyerscommented, May 2, 2017

This can also be ‘solved’ by setting floatingLabelFixed to true

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found