We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm getting several PropType warnings about booleans being passed to a div instead of strings. Specifically I'm seeing:
PropType
div
strings
Warning: Received `false` for a non-boolean attribute `active`. If you want to write it to the DOM, pass a string instead: active="false" or active={value.toString()}. If you used to conditionally omit it with active={condition && value}, pass active={condition ? value : undefined} instead. in div (created by DropdownMenu)
Warning: Received `false` for a non-boolean attribute `divider`. If you want to write it to the DOM, pass a string instead: divider="false" or divider={value.toString()}. If you used to conditionally omit it with divider={condition && value}, pass divider={condition ? value : undefined} instead. in div (created by DropdownMenu)
Warning: Received `false` for a non-boolean attribute `header`. If you want to write it to the DOM, pass a string instead: header="false" or header={value.toString()}. If you used to conditionally omit it with header={condition && value}, pass header={condition ? value : undefined} instead. in div (created by DropdownMenu)
This issue can be fixed by adding this instead of spreading props. I can open a PR if this seems reasonable to you.
active={this.props.active ? 'true' : 'false'} divider={this.props.divider ? 'true' : 'false'} header={this.props.header ? 'true' : 'false'}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm getting several
PropType
warnings about booleans being passed to adiv
instead ofstrings
. Specifically I'm seeing:This issue can be fixed by adding this instead of spreading props. I can open a PR if this seems reasonable to you.
The text was updated successfully, but these errors were encountered: