Open larrifax opened 2 weeks ago
Looks like I've might have jumped the gun a bit here wrt. this being a bug vs a feature request (?).
The types doesn't really allow "all"
in its type, but Typescript doesn't complain either when you supply it. ๐คท
Also, the convertExpanded()
-function that's used on the incoming expandedKeys
-prop seems to support "all"
as a value, so it tricked me into believing that it was intended to work.
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 setexpandedKeys
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:
๐ Possible Solution
No response
๐ฆ Context
No response
๐ฅ๏ธ Steps to Reproduce
https://codesandbox.io/p/sandbox/priceless-rgb-lz5k72
Expand explicit
button. Expansion is performed as expectedExpand all
button. Tree crashes and error message is displayedVersion
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