Closed vimeng closed 2 weeks ago
Hello @vimeng, I please check this example https://stackblitz.com/edit/udx4fe-kgiah2?file=src%2Fexample.tsx as it effectively addresses your scenario.
Demo:
https://github.com/user-attachments/assets/9ea05e1d-849e-419e-8610-b1e119e6f2b8
This issue has been marked as being beyond the support scope of Fluent UI's issues board. It will now be closed automatically for house-keeping purposes.
@vimeng, should the solution provided not resolve your issue, you are welcome to reopen it. Thank you!
Component
Tree
Package version
9.54.17
React version
18
Environment
Current Behavior
If a tree has more than one sub-trees in the second level, then clicking on the expand/collapse button on any sub-tree besides the last one will expand/collapse the root tree (first level) instead.
Expected Behavior
The expand/collapse button on the sub-trees should expand/collapse the corresponding sub-tree, not the root tree.
Reproduction
https://stackblitz.com/edit/udx4fe?file=src%2Fexample.tsx,package.json
Steps to reproduce
Are you reporting an Accessibility issue?
no
Suggested severity
Urgent - No workaround and Products/sites are affected
Products/sites affected
No response
Are you willing to submit a PR to fix?
no
Validations