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

getting warning for ListItem activated props #992

Open
sovanjana opened this issue Aug 8, 2019 · 1 comment
Open

getting warning for ListItem activated props #992

sovanjana opened this issue Aug 8, 2019 · 1 comment

Comments

@sovanjana
Copy link

in the ListItem.d.ts types defined for activated is boolean but i'm getting warning for it.

export interface ListItemProps<T extends HTMLElement = HTMLElement> extends React.HTMLProps<T>, ListItemContextShape { checkboxList?: boolean; radioList?: boolean; tag?: string; activated?: boolean; selected?: boolean; ref?: React.Ref<any>; }

Warning: Received false for a non-boolean attribute activated.
If you want to write it to the DOM, pass a string instead: activated="false" or activated={value.toString()}.
If you used to conditionally omit it with activated={condition && value}, pass activated={condition ? value : undefined} instead.

@liamcmitchell-sc
Copy link
Contributor

This should be fixed by #977. Are you using the latest version?

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