Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

getting warning for ListItem activated props #992

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

getting warning for ListItem activated props #992

sovanjana opened this issue Aug 8, 2019 · 1 comment
Labels
Unresolved (Archived) Open and unresolved issues and PRs that were closed due to archiving the repository.

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?

@asyncLiz asyncLiz added the Unresolved (Archived) Open and unresolved issues and PRs that were closed due to archiving the repository. label Jan 14, 2025
@asyncLiz asyncLiz closed this as not planned Won't fix, can't repro, duplicate, stale Jan 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Unresolved (Archived) Open and unresolved issues and PRs that were closed due to archiving the repository.
Projects
None yet
Development

No branches or pull requests

3 participants