This repository was archived by the owner on Jan 14, 2025. It is now read-only.
getting warning for ListItem activated props #992
Labels
Unresolved (Archived)
Open and unresolved issues and PRs that were closed due to archiving the repository.
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 attributeactivated
.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.
The text was updated successfully, but these errors were encountered: