Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SelectField default value display issue #25

Closed
sir4ur0n opened this issue Aug 8, 2016 · 5 comments
Closed

SelectField default value display issue #25

sir4ur0n opened this issue Aug 8, 2016 · 5 comments

Comments

@sir4ur0n
Copy link

sir4ur0n commented Aug 8, 2016

Hi,

When testing the SelectField example, I don't get the same display.

<Field
            name="driver"
            component={SelectField}
            hintText="Driver"
            floatingLabelText="Driver">
            <MenuItem value="alice@redux-pizza.com" primaryText="Alice"/>
            <MenuItem value="bob@redux-pizza.com" primaryText="Bob"/>
            <MenuItem value="carl@redux-pizza.com" primaryText="Carl"/>
</Field>

The first option's primaryText and the floatingLabelText overlap:
image

Using
"redux-form": "6.0.0-rc.4",
"redux-form-material-ui": "4.0.1"

Am I the only one?

@erikras
Copy link
Owner

erikras commented Aug 8, 2016

Hmm... I'm not seeing that on the live demo. You are seeing it when running the example locally in development mode?

@itaylorweb
Copy link

itaylorweb commented Aug 9, 2016

I get the same.
Looks like an issue with Material-UI 0.15.3. See the Material-UI Select Field Floating label example: http://www.material-ui.com/#/components/select-field

see: mui/material-ui#4891

If you want a value to be selected you could initialize the form with just the driver field which appears to correct the floating label.

@erikras
Copy link
Owner

erikras commented Aug 9, 2016

Okay, so it sounds like the problem is for Material UI to solve.

Thanks, @itaylorweb.

@erikras erikras closed this as completed Aug 9, 2016
@sir4ur0n
Copy link
Author

sir4ur0n commented Aug 9, 2016

You are right @itaylorweb it seems related to mui/material-ui#2446

@m2mathew
Copy link

This issue is fixed in MUI v0.15.4, released yesterday.
https://github.com/callemall/material-ui/releases/tag/v0.15.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants