Tree breaks when expandedKey is 'all'
Provide a general summary of the issue here
When you set expandedKeys value to 'all' it will display the error
'expandedKeys.has is not a function'
Thats causes by the line https://github.com/adobe/react-spectrum/blob/f5a80a09d52ce240df4edef27d42a8a7c1e0f2d7/packages/react-aria-components/src/Tree.tsx#L839
Where there is not a check for 'all' like the other parts of the code
๐ค Expected Behavior?
IT should expand all nodes
๐ฏ Current Behavior
DIsplays an error message 'expandedKeys.has is not a function'
๐ Possible Solution
Possibly adding a check for 'all' as the rest of the code, but Im not familiar with the codebase
๐ฆ Context
No response
๐ฅ๏ธ Steps to Reproduce
- Create a simple Tree component
- Set expandedKeys prop as 'all'
Version
1.11.0
What browsers are you seeing the problem on?
Firefox
If other, please specify.
No response
What operating system are you using?
linux
๐งข Your Company/Team
No response
๐ท Tracking Issue
No response
Thanks for the issue. We do not support "all" on expanded keys at this time. See prop definitions here https://react-spectrum.adobe.com/react-aria/Tree.html#props
See https://github.com/adobe/react-spectrum/issues/6568#issuecomment-2785381206 for more information