material-components-web-react
material-components-web-react copied to clipboard
getting warning for ListItem activated props
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.
This should be fixed by #977. Are you using the latest version?