Minor Changes
-
57478b8Thanks
@segunadebayo! - - AddedscrollToIndexFnprop to enable keyboard navigation in
virtualized trees- [Breaking]:
getVisibleNodes()now returns{ node, indexPath }[]instead ofnode[]. Returning the index
path perhaps the most useful use of this function, hence the change.
Migration:
// Before const nodes = api.getVisibleNodes() nodes.forEach((node) => console.log(node.id)) // After const visibleNodes = api.getVisibleNodes() visibleNodes.forEach(({ node }) => console.log(node.id))
- [Breaking]:
Patch Changes
- Updated dependencies []:
- @zag-js/anatomy@1.31.0
- @zag-js/core@1.31.0
- @zag-js/types@1.31.0
- @zag-js/collection@1.31.0
- @zag-js/utils@1.31.0
- @zag-js/dom-query@1.31.0