Tree: Incorrect props and types in documentation #7599
Labels
Component: Documentation
Issue or pull request is related to Documentation
Typescript
Issue or pull request is *only* related to TypeScript definition
Milestone
Describe the bug
The documentation mentions that there is a leaf property for TreeNode,
https://primereact.org/tree/#api.TreeNode.props.leaf
but that is incorrect, after logging the context, I can see that the property is actually named: isLeaf
As an additional note, the types for the pt prop are mostly broken as well:
I sincerely appreciate your work on this library, it has saved me a few hours!
Reproducer
No response
System Information
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: