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

[FormControlLable] fails to render with Checkbox control #293

Open
JESii opened this issue Nov 1, 2018 · 1 comment
Open

[FormControlLable] fails to render with Checkbox control #293

JESii opened this issue Nov 1, 2018 · 1 comment

Comments

@JESii
Copy link

JESii commented Nov 1, 2018

I'm working with "@material-ui/core": "^1.5.1" and "react": "^16.2.0". Since I am unable to get a Checkbox to render with a label (see issue #292 ), I decided to try the FormControlLabel.
When I render the following:

...
    return (
      <FormControlLabel
        control={this.renderRetryControl()}
        label="Select retry option."
      />
    );
...

  renderRetryControl() {
    return (
      <Checkbox
        id="retry"
        name='retry'
        checked={true}
      />
    )
  }

All I get is a blank screen, indicating that this somehow failed to render. I've also tried it with a more straight-forward approach, like so:

    return (
      <FormControlLabel
        control={
          <Checkbox
            id="retry"
            name='retry'
            checked={true}
          />
       }
        label="Select retry option."
      />
    );

with the same results.

@amorey
Copy link
Member

amorey commented Nov 2, 2018

@JESii Are you using MUI or material-ui? Here's my response to your other issue: #292 (comment)

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

2 participants