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

Warning: Received false for a non-boolean attribute large. #18

Open
radi-cho opened this issue Mar 30, 2018 · 1 comment
Open

Warning: Received false for a non-boolean attribute large. #18

radi-cho opened this issue Mar 30, 2018 · 1 comment

Comments

@radi-cho
Copy link
Member

What's the problem?

When pass true or false as a boolean for the large prop this warning is thrown:

image
It's interesting because in the example that warning is missing.

Example to reproduce the problem

<Checkbox
  checked={this.state.checked}
  large={true}
  onChange={() => {
    this.setState({ checked: !this.state.checked })
  }}
/>

// or
large={false}

// or
<Checkbox ... large .../>

If you change it to string (like "true") the warning disappears, but the size of the checkbox isn't changing...

@retrixe
Copy link
Member

retrixe commented Mar 30, 2018

Is it related to prop types possibly?

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

No branches or pull requests

2 participants