iTwin / iTwinUI-react

A react component library for iTwinUI.
https://github.com/iTwin/iTwinUI
Other
84 stars 23 forks source link

feat(Tree): Virtualization #713

Closed veekeys closed 2 years ago

veekeys commented 2 years ago

Closes #712

In order to preserve semantics (li inside ul), when virtualization is enabled I wrapped ul with div that gets outterProps, className and style. To make keyboard navigation to work when parent node is not in the DOM, I used useState for scroll index and had to use setTimeout inside useEffect to focus the node when it is visible.

Checklist