Unable to get example in the docs to work for Tree #10157
AlmeroSteyn
started this conversation in
General
Replies: 1 comment 2 replies
-
|
When I click our "Open in Stackblitz" option on that example and open it there, I don't see an issue: https://stackblitz.com/edit/mn37v4ea?file=src%2FExample.tsx Are you able to reproduce the issue there and share a link? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have made use of the Tree.tsx as an example to build a more basic version of the Tree and TreeItem which I will style later:
When I try the example at the top of the page with the hardcoded values the tree renders correctly.
But when I want to get the example under https://react-aria.adobe.com/Tree#content working with the same components I used for the example at the top, I get the following console warning:
"Expandable tree items must contain a expand button so screen reader users can expand/collapse the item."
Also the HTML is void of values to display and not fully rendered.
It does not seem that the Collection is working as it should for me.
I used the exact dataset and the exact code for the Tree as in the example under https://react-aria.adobe.com/Tree#content
However due to the code failing I had to change the id's to strings, then it did not through a complete error but then I get the problems mentioned above.
Test data used:
Is there a known isue with this? Can anyone see what I doing wrong?
I have used many components from the library and have always got them working from the docs, but this time I am getting stuck.
Beta Was this translation helpful? Give feedback.
All reactions