material-components-web-react icon indicating copy to clipboard operation
material-components-web-react copied to clipboard

getting warning for ListItem activated props

Open sovanjana opened this issue 4 years ago • 1 comments

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.

sovanjana avatar Aug 08 '19 07:08 sovanjana

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

liamcmitchell-sc avatar Aug 13 '19 07:08 liamcmitchell-sc