-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revert change to add 'all' to expandedKeys and other tree followups #6002
Conversation
Build successful! 🎉 |
Build successful! 🎉 |
Build successful! 🎉 |
Build successful! 🎉 |
## API Changes
unknown top level export { type: 'any' } @react-stately/treeTreeState TreeState<T> {
collection: Collection<Node<T>>
disabledKeys: Set<Key>
- expandedKeys: 'all' | Set<Key>
+ expandedKeys: Set<Key>
selectionManager: SelectionManager
- setExpandedKeys: ('all' | Set<Key>) => void
+ setExpandedKeys: (Set<Key>) => void
toggleKey: (Key) => void
} it changed:
TreeCollection TreeCollection<T> {
at: (number) => void
constructor: (Iterable<Node<T>>, {
- expandedKeys?: 'all' | Set<Key>
+ expandedKeys?: Set<Key>
}) => void
getFirstKey: () => void
getItem: (Key) => void
getKeyAfter: (Key) => void
getKeys: () => void
getLastKey: () => void
size: any
undefined: () => void
}
|
Closes
✅ Pull Request Checklist:
📝 Test Instructions:
🧢 Your Project:
RSP