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] not rendering child elements #4628

Closed
tsaifi9 opened this issue Jul 5, 2016 · 3 comments
Closed

[SelectField] not rendering child elements #4628

tsaifi9 opened this issue Jul 5, 2016 · 3 comments
Labels
component: select This is the name of the generic UI component, not the React module! package: styles Specific to @mui/styles. Legacy package, @material-ui/styled-engine is taking over in v5. v0.x

Comments

@tsaifi9
Copy link

tsaifi9 commented Jul 5, 2016

Problem description

Since upgrading from material-ui 0.14.4 to 0.15.1 I'm noticing my SelectField component is not rendering MenuItems. This could be due to the two warnings i'm seeing (related to #4594), but those are warnings, not errors.

Steps to reproduce

import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';

var Example = React.createClass({
  render: function() {

    return (
      <MuiThemeProvider>
        <SelectField floatingLabelText="Rendering">
          <MenuItem value={1} primaryText="Not rendering" />
        </SelectField>
      </MuiThemeProvider>
    );
  }
});

module.exports = Example;

Versions

  • Material-UI: 0.15.1
  • React: 15.2.0
  • Browser: Chrome 50.0.2661.75 (64-bit)
@nehalbhanushali
Copy link

@tsaifi9 The react import is missing from your problem description. Make sure you have that in your file. Otherwise I reproduced and it works.

@tsaifi9
Copy link
Author

tsaifi9 commented Jul 8, 2016

even with the react import, I'm still seeing the same behavior. I'll look around and see what else it could be.

@tsaifi9
Copy link
Author

tsaifi9 commented Jul 8, 2016

Resolved. This issue is a duplicate of #4237

@tsaifi9 tsaifi9 closed this as completed Jul 8, 2016
@oliviertassinari oliviertassinari added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Dec 21, 2022
@zannager zannager added component: select This is the name of the generic UI component, not the React module! package: styles Specific to @mui/styles. Legacy package, @material-ui/styled-engine is taking over in v5. v0.x and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: select This is the name of the generic UI component, not the React module! package: styles Specific to @mui/styles. Legacy package, @material-ui/styled-engine is taking over in v5. v0.x
Projects
None yet
Development

No branches or pull requests

4 participants