-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
Provide a general summary of the issue here
I'm trying to use the new Tree component from react-aria-components, but it crashes when attempting to set expandedKeys prop to "all" (which should be a valid value according to the types).
See reproduction below
🤔 Expected Behavior?
Tree should successfully expand all possible keys
😯 Current Behavior
Tree crashes with error:
expandedKeys.has is not a function
visitNode
https://lz5k72.csb.app/node_modules/react-aria-components/dist/Tree.main.js:418:71
visitNode
https://lz5k72.csb.app/node_modules/react-aria-components/dist/Tree.main.js:421:60
$c6576bb58bfa084b$var$flattenTree
https://lz5k72.csb.app/node_modules/react-aria-components/dist/Tree.main.js:423:33
new $c6576bb58bfa084b$var$TreeCollection
https://lz5k72.csb.app/node_modules/react-aria-components/dist/Tree.main.js:103:64
💁 Possible Solution
No response
🔦 Context
No response
🖥️ Steps to Reproduce
https://codesandbox.io/p/sandbox/priceless-rgb-lz5k72
- Click the
Expand explicitbutton. Expansion is performed as expected - Click the
Expand allbutton. Tree crashes and error message is displayed
Version
1.2.1
What browsers are you seeing the problem on?
Chrome
If other, please specify.
No response
What operating system are you using?
Windows
🧢 Your Company/Team
No response
🕷 Tracking Issue
No response
Metadata
Metadata
Assignees
Labels
No labels